摘要:
原题链接在这里:https://leetcode.com/problems/valid-number/ 题目: Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/text-justification/ 题目: Given an array of words and a width maxWidth, format the text such that each line has ex 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/the-skyline-problem/ 题目: A city's skyline is the outer contour of the silhouette formed by all the buildings in 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-gap/ 题目: Given an unsorted array, find the maximum difference between the successive elements in its sor 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/integer-to-english-words/ 题目: Convert a non-negative integer to its english words representation. Given input is 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/lru-cache/ 题目: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ 题目: Serialization is the process of converting a data structure or object 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/design-add-and-search-words-data-structure/ 题目: Design a data structure that supports adding new words and findi 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/largest-number/ 题目: Given a list of non negative integers, arrange them such that they form the largest number. 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/bulls-and-cows/ 题目: You are playing the following Bulls and Cows game with your friend: You write down a number 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/contains-duplicate-iii/ 题目: Given an array of integers, find out whether there are two distinct indices i and j 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/shortest-palindrome/ 题目: Given a string S, you are allowed to convert it to a palindrome by adding characters in 阅读全文
摘要:
https://www.linkedin.com/pulse/my-top-5-questions-ask-interview-morna-simpson 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/longest-palindromic-substring/ 题目: Given a string s, find the longest palindromic substring in s. You may assume 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/restore-ip-addresses/ 题目: Given a string containing only digits, restore it by returning all possible valid IP a 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-digit-one/每10个数, 有一个个位是1, 每100个数, 有10个十位是1, 每1000个数, 有100个百位是1. 做一个循环, 每次计算单个位上1得总个数(个位,十位, 百位).例子:以算百... 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/n-queens-ii/ 题目: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/letter-combinations-of-a-phone-number/ 题目: Given a digit string, return all possible letter combinations that th 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/bitwise-and-of-numbers-range/ 题目: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND o 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/peeking-iterator/ 题目: Given an Iterator class interface with methods: next() and hasNext(), design and implement 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/expression-add-operators/ 题目: Given a string that contains only digits 0-9 and a target value, return all possib 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/different-ways-to-add-parentheses/ 题目: Given a string of numbers and operators, return all possible results from 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/h-index-ii/ 题目: Given an array of citations sorted in ascending order (each citation is a non-negative integer) 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/h-index/ 题目: Given an array of citations (each citation is a non-negative integer) of a researcher, write a func 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/gray-code/ 题目: The gray code is a binary numeral system where two successive values differ in only one bit. Give 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/single-number-iii/ 题目: Given an array of numbers nums, in which exactly two elements appear only once and all th 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/longest-consecutive-sequence/ 题目: Given an unsorted array of integers, find the length of the longest consecutiv 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/implement-trie-prefix-tree/ 题目: Implement a trie with insert, search, and startsWith methods. Note:You may assum 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/surrounded-regions/ 题目: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded b 阅读全文
摘要:
原题链接在这里: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 阅读全文