摘要: 原题链接在这里: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 阅读(217) 评论(0) 推荐(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 阅读(200) 评论(0) 推荐(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 阅读(336) 评论(0) 推荐(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 阅读(1440) 评论(0) 推荐(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 阅读(529) 评论(0) 推荐(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 阅读(264) 评论(0) 推荐(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 阅读(204) 评论(0) 推荐(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 阅读(249) 评论(0) 推荐(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 阅读(309) 评论(0) 推荐(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 阅读(313) 评论(0) 推荐(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 阅读(459) 评论(0) 推荐(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 阅读(493) 评论(0) 推荐(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 阅读(796) 评论(0) 推荐(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 阅读(548) 评论(0) 推荐(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 阅读(435) 评论(0) 推荐(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 阅读(199) 评论(0) 推荐(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 阅读(785) 评论(0) 推荐(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 阅读(947) 评论(0) 推荐(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 阅读(344) 评论(0) 推荐(0) 编辑
摘要: https://www.linkedin.com/pulse/my-top-5-questions-ask-interview-morna-simpson 阅读全文
posted @ 2015-10-30 06:52 Dylan_Java_NYC 阅读(173) 评论(0) 推荐(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 阅读(385) 评论(0) 推荐(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 阅读(376) 评论(0) 推荐(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 阅读(149) 评论(0) 推荐(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 阅读(207) 评论(0) 推荐(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 阅读(335) 评论(0) 推荐(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 阅读(206) 评论(0) 推荐(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 阅读(224) 评论(0) 推荐(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 阅读(419) 评论(0) 推荐(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 阅读(529) 评论(0) 推荐(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 阅读(480) 评论(0) 推荐(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 阅读(276) 评论(0) 推荐(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 阅读(303) 评论(0) 推荐(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 阅读(213) 评论(0) 推荐(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 阅读(272) 评论(0) 推荐(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 阅读(289) 评论(0) 推荐(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 阅读(174) 评论(0) 推荐(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 阅读(283) 评论(0) 推荐(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 阅读(527) 评论(0) 推荐(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 阅读(345) 评论(0) 推荐(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 阅读(711) 评论(0) 推荐(0) 编辑