发布时间:2015-07-30 16:41:05
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:10px;color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;line-height:30px;white-space:normal;background-color:#FFFFFF;">PermutationsII<br />Given a collection of numbers that might contain duplicates,.........【阅读全文】
发布时间:2015-07-13 21:27:03
/Maximum Subarray Total Accepted: 63692 Total Submissions: 184929 My Submissions Question Solution <br />//Find the contiguous subarray within an array (containing at least one number) which has the largest sum.<br />//<br />//For example, given the array [?2,1,?3,4,?1,2,1,?5,4],<br />/.........【阅读全文】
发布时间:2015-07-07 20:58:16
//Multiply Strings Total Accepted: 33986 Total Submissions: 161757 My Submissions Question Solution <br />//Given two numbers represented as strings, return multiplication of the numbers as a string.<br />//<br />//Note: The numbers can be arbitrarily large and are non-negative.<br />public.........【阅读全文】
发布时间:2015-07-07 15:00:43
//Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.<br />//<br />//For example,<br />//Given:<br />//s1 = "aabcc",<br />//s2 = "dbbca",<br />//<br />//When s3 = "aadbbcbcac", return true.<br />//When s3 = "aadbbbaccc", return false.<br />public class Interleaving.........【阅读全文】
发布时间:2015-07-07 11:42:36
//Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.<br />//<br />//For example, <br />//Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.<br />import java.util.ArrayList;<br /><br /><br />import.........【阅读全文】