摘要:        
原题链接在这里:https://leetcode.com/problems/valid-number/ 题目: Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true"     
阅读全文
 
        
        
            posted @ 2015-11-10 01:48
Dylan_Java_NYC
阅读(226)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/max-points-on-a-line/ 题目: Given n points on a 2D plane, find the maximum number of points that lie on the same s    
阅读全文
 
        
        
            posted @ 2015-11-09 12:37
Dylan_Java_NYC
阅读(204)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/text-justification/ 题目: Given an array of words and a width maxWidth, format the text such that each line has ex    
阅读全文
 
        
        
            posted @ 2015-11-07 11:01
Dylan_Java_NYC
阅读(338)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/word-search-ii/ 题目: Given a 2D board and a list of words from the dictionary, find all words in the board. Each     
阅读全文
 
        
        
            posted @ 2015-11-07 09:11
Dylan_Java_NYC
阅读(1455)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/word-search/ 题目: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed f    
阅读全文
 
        
        
            posted @ 2015-11-07 07:38
Dylan_Java_NYC
阅读(541)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/the-skyline-problem/ 题目: A city's skyline is the outer contour of the silhouette formed by all the buildings in     
阅读全文
 
        
        
            posted @ 2015-11-07 07:24
Dylan_Java_NYC
阅读(272)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/candy/ There are N children standing in a line. Each child is assigned a rating value. You are giving candies to    
阅读全文
 
        
        
            posted @ 2015-11-05 07:52
Dylan_Java_NYC
阅读(210)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/sliding-window-maximum/ 题目: Given an array nums, there is a sliding window of size k which is moving from the ve    
阅读全文
 
        
        
            posted @ 2015-11-05 07:20
Dylan_Java_NYC
阅读(257)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/maximum-gap/ 题目: Given an unsorted array, find the maximum difference between the successive elements in its sor    
阅读全文
 
        
        
            posted @ 2015-11-05 05:41
Dylan_Java_NYC
阅读(318)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/integer-to-english-words/ 题目: Convert a non-negative integer to its english words representation. Given input is    
阅读全文
 
        
        
            posted @ 2015-11-05 01:30
Dylan_Java_NYC
阅读(318)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/lru-cache/ 题目: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the     
阅读全文
 
        
        
            posted @ 2015-11-04 09:36
Dylan_Java_NYC
阅读(463)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/find-median-from-data-stream/ 题目: Median is the middle value in an ordered integer list. If the size of the list    
阅读全文
 
        
        
            posted @ 2015-11-04 07:17
Dylan_Java_NYC
阅读(504)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ 题目: Serialization is the process of converting a data structure or object    
阅读全文
 
        
        
            posted @ 2015-11-04 03:11
Dylan_Java_NYC
阅读(805)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/design-add-and-search-words-data-structure/ 题目: Design a data structure that supports adding new words and findi    
阅读全文
 
        
        
            posted @ 2015-11-03 12:07
Dylan_Java_NYC
阅读(554)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/largest-number/ 题目: Given a list of non negative integers, arrange them such that they form the largest number.     
阅读全文
 
        
        
            posted @ 2015-11-02 13:10
Dylan_Java_NYC
阅读(442)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/repeated-dna-sequences/ 题目: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for ex    
阅读全文
 
        
        
            posted @ 2015-11-02 12:10
Dylan_Java_NYC
阅读(205)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/bulls-and-cows/ 题目: You are playing the following Bulls and Cows game with your friend: You write down a number     
阅读全文
 
        
        
            posted @ 2015-11-02 11:15
Dylan_Java_NYC
阅读(792)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/contains-duplicate-iii/ 题目: Given an array of integers, find out whether there are two distinct indices i and j     
阅读全文
 
        
        
            posted @ 2015-10-30 23:01
Dylan_Java_NYC
阅读(957)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/shortest-palindrome/ 题目: Given a string S, you are allowed to convert it to a palindrome by adding characters in    
阅读全文
 
        
        
            posted @ 2015-10-30 21:06
Dylan_Java_NYC
阅读(355)
推荐(0)
        
        
            
        
        
            
摘要:        
https://www.linkedin.com/pulse/my-top-5-questions-ask-interview-morna-simpson    
阅读全文
 
        
        
            posted @ 2015-10-30 06:52
Dylan_Java_NYC
阅读(182)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/longest-palindromic-substring/ 题目: Given a string s, find the longest palindromic substring in s. You may assume    
阅读全文
 
        
        
            posted @ 2015-10-29 22:20
Dylan_Java_NYC
阅读(397)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/restore-ip-addresses/ 题目: Given a string containing only digits, restore it by returning all possible valid IP a    
阅读全文
 
        
        
            posted @ 2015-10-29 21:32
Dylan_Java_NYC
阅读(388)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/number-of-digit-one/每10个数, 有一个个位是1, 每100个数, 有10个十位是1, 每1000个数, 有100个百位是1. 做一个循环, 每次计算单个位上1得总个数(个位,十位, 百位).例子:以算百...    
阅读全文
 
        
        
            posted @ 2015-10-29 13:07
Dylan_Java_NYC
阅读(154)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/n-queens-ii/ 题目: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total     
阅读全文
 
        
        
            posted @ 2015-10-29 12:34
Dylan_Java_NYC
阅读(221)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/letter-combinations-of-a-phone-number/ 题目: Given a digit string, return all possible letter combinations that th    
阅读全文
 
        
        
            posted @ 2015-10-29 12:00
Dylan_Java_NYC
阅读(338)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/bitwise-and-of-numbers-range/ 题目: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND o    
阅读全文
 
        
        
            posted @ 2015-10-29 10:55
Dylan_Java_NYC
阅读(214)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/peeking-iterator/ 题目: Given an Iterator class interface with methods: next() and hasNext(), design and implement    
阅读全文
 
        
        
            posted @ 2015-10-29 10:20
Dylan_Java_NYC
阅读(242)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/expression-add-operators/ 题目: Given a string that contains only digits 0-9 and a target value, return all possib    
阅读全文
 
        
        
            posted @ 2015-10-29 04:44
Dylan_Java_NYC
阅读(431)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/different-ways-to-add-parentheses/ 题目: Given a string of numbers and operators, return all possible results from    
阅读全文
 
        
        
            posted @ 2015-10-29 02:40
Dylan_Java_NYC
阅读(534)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/kth-largest-element-in-an-array/ 题目: Find the kth largest element in an unsorted array. Note that it is the kth     
阅读全文
 
        
        
            posted @ 2015-10-29 01:07
Dylan_Java_NYC
阅读(501)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/h-index-ii/ 题目: Given an array of citations sorted in ascending order (each citation is a non-negative integer)     
阅读全文
 
        
        
            posted @ 2015-10-28 09:34
Dylan_Java_NYC
阅读(288)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/h-index/ 题目: Given an array of citations (each citation is a non-negative integer) of a researcher, write a func    
阅读全文
 
        
        
            posted @ 2015-10-28 09:17
Dylan_Java_NYC
阅读(312)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/gray-code/ 题目: The gray code is a binary numeral system where two successive values differ in only one bit. Give    
阅读全文
 
        
        
            posted @ 2015-10-25 08:43
Dylan_Java_NYC
阅读(226)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/single-number-iii/ 题目: Given an array of numbers nums, in which exactly two elements appear only once and all th    
阅读全文
 
        
        
            posted @ 2015-10-25 08:00
Dylan_Java_NYC
阅读(284)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/word-pattern/ 题目: Given a pattern and a string str, find if str follows the same pattern. Here follow means a fu    
阅读全文
 
        
        
            posted @ 2015-10-23 07:39
Dylan_Java_NYC
阅读(296)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/nim-game/ 题目: You are playing the following Nim Game with your friend: There is a heap of stones on the table, e    
阅读全文
 
        
        
            posted @ 2015-10-23 06:56
Dylan_Java_NYC
阅读(187)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/longest-consecutive-sequence/ 题目: Given an unsorted array of integers, find the length of the longest consecutiv    
阅读全文
 
        
        
            posted @ 2015-10-18 08:03
Dylan_Java_NYC
阅读(293)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/implement-trie-prefix-tree/ 题目: Implement a trie with insert, search, and startsWith methods. Note:You may assum    
阅读全文
 
        
        
            posted @ 2015-10-18 07:14
Dylan_Java_NYC
阅读(543)
推荐(0)
        
        
 
    
    
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/surrounded-regions/ 题目: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded b    
阅读全文
 
        
        
            posted @ 2015-10-17 09:28
Dylan_Java_NYC
阅读(358)
推荐(0)
        
        
            
        
        
            
摘要:        
原题链接在这里:https://leetcode.com/problems/number-of-islands/ 题目: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An isla    
阅读全文
 
        
        
            posted @ 2015-10-17 08:45
Dylan_Java_NYC
阅读(726)
推荐(0)