上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 54 下一页
摘要: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a 阅读全文
posted @ 2016-07-10 23:04 北叶青藤 阅读(239) 评论(0) 推荐(0)
摘要: Given two array of integers(the first array is array A, the second array is arrayB), now we are going to find a element in array A which is A[i], and 阅读全文
posted @ 2016-07-10 12:45 北叶青藤 阅读(329) 评论(0) 推荐(0)
摘要: Write a method to replace all spaces in a string with %20. The string is given in a characters array, you can assume it has enough space for replaceme 阅读全文
posted @ 2016-07-10 12:39 北叶青藤 阅读(218) 评论(0) 推荐(0)
摘要: Invert a binary tree. Invert a binary tree. Invert a binary tree. Example 1 1 / \ / \ 2 3 => 3 2 / \ 4 4 1 /** 2 * Definition of TreeNode: 3 * public 阅读全文
posted @ 2016-07-10 12:32 北叶青藤 阅读(133) 评论(0) 推荐(0)
摘要: Implement int sqrt(int x). Compute and return the square root of x. Have you met this question in a real interview? Yes Example sqrt(3) = 1 sqrt(4) = 阅读全文
posted @ 2016-07-10 12:29 北叶青藤 阅读(204) 评论(0) 推荐(0)
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. Notice Bonus point if you 阅读全文
posted @ 2016-07-10 08:46 北叶青藤 阅读(205) 评论(0) 推荐(0)
摘要: Given a dictionary, find all of the longest words in the dictionary. Given a dictionary, find all of the longest words in the dictionary. Given a dict 阅读全文
posted @ 2016-07-10 07:12 北叶青藤 阅读(233) 评论(0) 推荐(0)
摘要: Given an integer array, heapify it into a min-heap array. For a heap array A, A[0] is the root of heap, and for each A[i], A[i * 2 + 1] is the left ch 阅读全文
posted @ 2016-07-10 07:05 北叶青藤 阅读(412) 评论(0) 推荐(0)
摘要: Coins in a Line I There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins left. The 阅读全文
posted @ 2016-07-10 04:06 北叶青藤 阅读(210) 评论(0) 推荐(0)
摘要: You have two every large binary trees: T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a subtree of 阅读全文
posted @ 2016-07-09 12:52 北叶青藤 阅读(366) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 54 下一页