-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
K-th smallest Element in BST #2172
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
Comments
@cclauss thoughts? |
@Gaushikmr I was kind of hoping to work on it myself once @cclauss or any other mentor approves the functions |
Please do not open issues to ask permission or be to assigned. Those are both alien concepts in this repo. We review pull requests. If you have a good idea then implement it and submit a pull request. If you both submit pull requests on the same algorithm, we might pick one and close the other. Or more likely, we might ask you to work together to create a unified pull request that takes the strengths of each request. Only our competitors think that we should wait... |
Thanks for the reply! I will issue a PR soon |
It would also help readers if you could provide a use case. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@jay24rajput R u working on this issue.if not I can work on it |
@Gaushikmr Please go ahead 👍 |
@jay24rajput OK |
Can I work on this issue? |
PLEASE do not ask permission to work on a problem. This repo does not reserve tasks or give permission. If you see something that should be fixed then please submit a pull request and it will be evaluated on its merits. Having two developers submit alternative solutions to a problem is much better than having developers waiting for permission to start working. |
…s#2318) * fixes: TheAlgorithms#2172 * fixes: TheAlgorithms#2172 * Added docstrings and type of parameters * fixed error * Added type hints * made changes * removed capital letters from function name * Added type hints * fixed bulid error * modified comments * fixed build error
Problem Statement
Adding a function to the BST to find the kth-smallest element in the entire binary search tree. If possible I would also like to extend it to find the kth-largest element in the BST.
Motivation
This problem was asked in Leetcode Challenge. I thought that this will be a good addition( if not absolutely necessary) to the BST functions.
The text was updated successfully, but these errors were encountered: