Open
Conversation
added 13 commits
April 10, 2019 17:24
tidelgl
reviewed
Apr 20, 2019
|
|
||
| class Solution { | ||
| /** | ||
| * <pre> |
tidelgl
reviewed
Apr 20, 2019
| 递归 | ||
| 有2点真的很重要 | ||
| * 终止条件 | ||
| * 思维上一定要"信任"下一层的递归结果,不用把自己带入下一层的逻辑中 |
Contributor
|
请遵循我们的命名规范哈。 代码文件命名规则:LeetCode_题目序号_学号,比如学号为 0 的学员完成 LeetCode 的第 2 题 后,请将代码文件名保存为 LeetCode_2_0.py (假设你使用的是 Python 语言)。 |
tidelgl
reviewed
May 4, 2019
| int k = 3; | ||
| int[] arr = {4, 5, 8, 2}; | ||
| KthLargest3 kthLargest = new KthLargest3(k, arr); | ||
| System.out.println(String.format("添加%d , 期望值:4,实际值:%d", 3, kthLargest.add(3))); // returns 4 |
Author
There was a problem hiding this comment.
测试用例写的好,不过同学你还缺一道题
前几天没怎么做题,昨天提交的 :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.