leetcode
文章平均质量分 80
linh59
这个作者很懒,什么都没留下…
展开
-
#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 · 184 阅读 · 0 评论 -
#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 · 184 阅读 · 0 评论 -
#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 · 201 阅读 · 0 评论 -
#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 · 197 阅读 · 0 评论 -
#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 · 250 阅读 · 0 评论 -
#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 · 306 阅读 · 0 评论 -
#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 · 248 阅读 · 0 评论 -
#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 · 160 阅读 · 0 评论