Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@aiter
Copy link

@aiter aiter commented Apr 19, 2019

No description provided.


class Solution {
/**
* <pre>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你的注释好高级!

递归
有2点真的很重要
* 终止条件
* 思维上一定要"信任"下一层的递归结果,不用把自己带入下一层的逻辑中
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不能同意更多!

@GeekUniversity
Copy link
Contributor

请遵循我们的命名规范哈。

代码文件命名规则: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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试用例写的好,不过同学你还缺一道题

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试用例写的好,不过同学你还缺一道题

前几天没怎么做题,昨天提交的 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.