leetCode
dh_chen
从小立志做名低俗的诗人~_~
展开
-
leetcode 322. Coin Change
leetcode Coin Change原创 2016-06-02 01:03:32 · 435 阅读 · 0 评论 -
leetcode 232. Implement Queue using Stacks
题目描述:Implement 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.peek() -- Get the front ele原创 2016-07-05 22:12:18 · 369 阅读 · 0 评论 -
leetcode 101. Symmetric Tree
题目描述:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \原创 2016-06-19 23:53:26 · 328 阅读 · 0 评论 -
leetcode 27. Remove Element
题目描述:Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this in place with constant原创 2016-06-19 18:32:35 · 336 阅读 · 0 评论 -
leetcode 198. 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 adj原创 2016-06-19 17:31:36 · 298 阅读 · 0 评论 -
leetcode 142. Linked List Cycle II
题目描述:Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do not modify the linked list.Follow up:Can you solve it without using extra s原创 2016-06-19 11:23:00 · 307 阅读 · 0 评论 -
leetcode 141. Linked List Cycle
题目描述:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解题思路:这道题比较简单,用两个指针就可以了。/** * Definition for singly-linked list. * s原创 2016-06-19 10:15:29 · 314 阅读 · 0 评论 -
leetcode 278. First Bad Version
题目描述:You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed b原创 2016-07-24 16:15:49 · 328 阅读 · 0 评论 -
leetcode 326. Power of Three
leetcode 326. Power of Three原创 2016-06-07 00:40:53 · 341 阅读 · 0 评论 -
leetcode 191. Number of 1 Bits
leetcode 191. Number of 1 Bits原创 2016-06-06 21:54:20 · 321 阅读 · 0 评论 -
leetcode 83. Remove Duplicates from Sorted List
leetcode 83. Remove Duplicates from Sorted List原创 2016-06-08 22:23:20 · 285 阅读 · 0 评论 -
leetcode 242. Valid Anagram
leetcode 242. Valid Anagram原创 2016-06-03 00:46:03 · 339 阅读 · 0 评论 -
ReverseInteger
leetcode 7. Reverse Integer题目描述:Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321Note: The input is assumed to be a 32-bit signed integer. Your function shoul原创 2017-10-21 17:57:36 · 268 阅读 · 0 评论