Skip to content
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

排序找第几个最大 #509

Open
Sunny-117 opened this issue May 27, 2024 · 0 comments
Open

排序找第几个最大 #509

Sunny-117 opened this issue May 27, 2024 · 0 comments

Comments

@Sunny-117
Copy link
Owner

在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 限制:不可使用 sort 函数 你可以假设 k 总是有效的,且 1 ≤ k ≤ 数组的长度。

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

No branches or pull requests

1 participant