- 博客(32)
- 资源 (1)
- 收藏
- 关注
转载 leetcode--Lowest Common Ancestor of a Binary Search Tree
Lowest Common Ancestor of a Binary Search Tree
2016-12-20 22:48:45 237
转载 leetcode--Implement Queue using Stacks
题目: Implement Queue using StacksImplement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.
2016-12-19 22:57:06 207
转载 leetcode--Contains Duplicate
题目:Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return
2016-12-14 15:53:39 195
转载 leetcode--Count Primes
Count Primes:Count the number of prime numbers less than a non-negative number, n.One:埃拉托斯特尼筛法 Sieve of Eratosthenes思路:素数不能被比它小的整数整除, 建一个boolean 数组, 从2开始, 把其倍数小于N的都删掉.public class
2016-12-13 16:38:58 202
原创 leetcode--Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use only O(k) extra space?public class
2016-12-06 20:22:17 166
java-zxing生成二维码
2018-10-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人