- 博客(8)
- 资源 (6)
- 收藏
- 关注
原创 #leetcode编程日记#173. Binary Search Tree Iterator
问题描述 Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. 注意事项
2017-11-12 21:17:57 146
原创 #leetcode编程日记#583. Delete Operation for Two Strings
题目描述 Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string. 样例: Input:
2017-10-18 22:40:00 231
原创 #leetcode编程日记#554. Brick Wall
题目描述 There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. You want to draw a vertical line from the
2017-09-28 19:13:11 288
原创 #leetcode编程日记#343. Integer Break
题目描述 Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get. For example, given
2017-09-22 19:49:17 169
原创 #leetcode编程日记#94. Binary Tree Inorder Traversal
题目描述 Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree [1,null,2,3], 1 \ 2 / 3 return [1,3,2]. 注意事项 Recurs
2017-09-19 23:36:29 234
原创 #leetcode编程日记#347. Top K Frequent Elements
题目描述 Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,1,2,2,3] and k = 2, return [1,2]. 注意事项 You may assume k is always valid, 1 ≤ k ≤ n
2017-09-16 21:09:24 182
原创 #leetcode编程日记#547. Friend Circles
题目描述 There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct friend of B, and B is a direct friend
2017-09-16 18:38:01 185
原创 #leetcode编程日记#529. Minesweeper
题目描述: Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. 'M' represents an unrevealed mine, 'E' represents an unrevealed
2017-09-15 19:54:25 167
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人