Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Java Solution: Kth Largest Element in an Array #222

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

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

GauravVarshikar
Copy link
Contributor

Solved using Min Heap data structure in Java
LeetCode result: Runtime: 7 ms, faster than 45.05% of Java online submissions for Kth Largest Element in an Array.
Memory Usage: 45.5 MB, less than 13.98% of Java online submissions for Kth Largest Element in an Array.

Solution of Kth Largest Element in an array using a heap

Leetcode result: Runtime: 7 ms, faster than 45.05% of Java online submissions for Kth Largest Element in an Array.
Memory Usage: 45.5 MB, less than 13.98% of Java online submissions for Kth Largest Element in an Array.
Create 215-Kth-Largest-Element-in-an-Array.java
@neetcode-gh neetcode-gh merged commit 393923e into neetcode-gh:main Jun 9, 2022
@GauravVarshikar
Copy link
Contributor Author

GauravVarshikar commented Jun 9, 2022

Thank you @neetcode-gh for accepting my solution!
A moment of pride for me as I only recently started actively preparing for DSA questions.
Big fan of your content on Youtube and especially neetcode.io which has helped me a lot in learning DSA in a structured manner.

Keep going on!

thanks,
Gaurav

neetcode-gh added a commit that referenced this pull request Jul 2, 2022
Java Solution: Kth Largest Element in an Array
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.

2 participants