摘要: Problem:Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two el... 阅读全文
posted @ 2015-08-27 23:47 airforce 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Problem:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have... 阅读全文
posted @ 2015-08-27 12:43 airforce 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Problem:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded messa... 阅读全文
posted @ 2015-08-27 09:56 airforce 阅读(433) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surrounde... 阅读全文
posted @ 2015-08-27 06:03 airforce 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Problem:Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in th... 阅读全文
posted @ 2015-08-27 03:42 airforce 阅读(152) 评论(0) 推荐(0) 编辑