-
Notifications
You must be signed in to change notification settings - Fork 149
014-第一周作业 #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
014-第一周作业 #95
Conversation
|
|
||
| class Solution { | ||
| /** | ||
| * <pre> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你的注释好高级!
| 递归 | ||
| 有2点真的很重要 | ||
| * 终止条件 | ||
| * 思维上一定要"信任"下一层的递归结果,不用把自己带入下一层的逻辑中 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不能同意更多!
|
请遵循我们的命名规范哈。 代码文件命名规则:LeetCode_题目序号_学号,比如学号为 0 的学员完成 LeetCode 的第 2 题 后,请将代码文件名保存为 LeetCode_2_0.py (假设你使用的是 Python 语言)。 |
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试用例写的好,不过同学你还缺一道题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试用例写的好,不过同学你还缺一道题
前几天没怎么做题,昨天提交的 :)
No description provided.