发布时间:2015-08-28 14:55:46
//<br />//Climbing Stairs Total Accepted: 66034 Total Submissions: 191740 My Submissions Question Solution <br />//You are climbing a stair case. It takes n steps to reach to the top.<br />//<br />//Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the .........【阅读全文】
发布时间:2015-08-12 16:27:57
//Implement int sqrt(int x).<br />//<br />//Compute and return the square root of x.<br />public class Sqrt {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public int mySqrt(int x) {<br />// .........【阅读全文】
发布时间:2015-08-12 15:22:08
//Text Justification Total Accepted: 22323 Total Submissions: 152223 My Submissions Question Solution <br />//Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.<br />//<br />//You should pack your word.........【阅读全文】
发布时间:2015-08-06 22:01:30
<br /><br />public class UniquePaths {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public int uniquePaths(int m, int n) {<br />// int[][] pathcount=new int[m][n];<br />//  .........【阅读全文】
发布时间:2015-08-05 21:36:42
//Same Tree Total Accepted: 71830 Total Submissions: 173103 My Submissions Question Solution <br />//Given two binary trees, write a function to check if they are equal or not.<br />//<br />//Two binary trees are considered equal if they are structurally identical and the nodes have the same.........【阅读全文】