- 博客(3)
- 收藏
- 关注
原创 [leetCode] House Robber
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent house
2015-08-22 00:31:10 310
原创 [leetCode] Palindrome Linked List
Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? public class Solution { ListNode h; public boolean isPalindrome(ListNo
2015-08-19 00:56:40 338
原创 [leetCode] Different Ways to Add Parentheses
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *. Example 1
2015-08-04 02:15:01 595
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人