发布时间:2015-09-11 21:58:32
//Subsets My Submissions Question Solution <br />//Total Accepted: 62243 Total Submissions: 219925 Difficulty: Medium<br />//Given a set of distinct integers, nums, return all possible subsets.<br />//<br />//Note:<br />//Elements in a subset must be in non-descending order.<br />//The so.........【阅读全文】
发布时间:2015-09-11 21:21:49
//Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).<br />//<br />//For example,<br />//S = "ADOBECODEBANC"<br />//T = "ABC"<br />//Minimum window is "BANC".<br />//<br />//Note:<br />//If there is no such window in S .........【阅读全文】
发布时间:2015-09-11 13:30:46
//Sort Colors Total Accepted: 65124 Total Submissions: 199819 My Submissions Question Solution <br />//Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.<br />//<br />//Here, we.........【阅读全文】
发布时间:2015-09-10 18:27:05
使用dp方式来做<br /><br />//Edit Distance Total Accepted: 41444 Total Submissions: 156328 My Submissions Question Solution <br />//Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)<br />//<br />//You.........【阅读全文】
发布时间:2015-09-10 18:26:21
/Simplify Path Total Accepted: 35464 Total Submissions: 176460 My Submissions Question Solution <br />//Given an absolute path for a file (Unix-style), simplify it.<br />//<br />//For example,<br />//path = "/home/", => "/home"<br />//path = "/a/./b/../../c/", => "/c"<br />//click t.........【阅读全文】