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

K-th smallest Element in BST #2172

Open
jay24rajput opened this issue Jul 4, 2020 · 1 comment
Open

K-th smallest Element in BST #2172

jay24rajput opened this issue Jul 4, 2020 · 1 comment

Comments

@jay24rajput
Copy link

@jay24rajput jay24rajput commented Jul 4, 2020

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.

@jay24rajput
Copy link
Author

@jay24rajput jay24rajput commented Jul 5, 2020

@cclauss thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.