- 博客(8)
- 收藏
- 关注
原创 Range Sum Query 2D -- leetcode
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). The above rectangle (with the red bo
2016-07-24 18:04:28 229
原创 Remove Invalid Parentheses -- Leetcode
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may contain letters other than the parentheses ( and ).
2016-07-17 21:14:55 448
原创 Longest Increasing Subsequence -- Leetcode
Given an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The longest increasing subsequence is [2, 3, 7, 101], ther
2016-07-17 09:20:19 307
原创 Bulls and Cows -- leetcode
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint t
2016-07-09 21:12:28 323
原创 Serialize and Deserialize Binary Tree -- leetcode
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be
2016-07-09 19:28:22 328
原创 Find Median from Data Stream -- Leetcode
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the median
2016-07-02 21:35:38 313
原创 Nim Game -- leetcode
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the
2016-07-02 19:50:02 256
原创 Word Pattern -- Leetcode
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str.
2016-07-02 18:51:25 272
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人