Skip to content

Find Mode in Binary Search Tree.js#70

Merged
sohamsshah merged 1 commit into
codesONLY:masterfrom
DEV-AB-03:patch-3
Oct 20, 2021
Merged

Find Mode in Binary Search Tree.js#70
sohamsshah merged 1 commit into
codesONLY:masterfrom
DEV-AB-03:patch-3

Conversation

@DEV-AB-03

Copy link
Copy Markdown
Contributor

Here I have proposed the solution for one of the most famous interview questions asked in the "FAANG" companies in Binary Search Trees Data Structure which is for finding the "Mode" in a given BST. Here I have used "Depth First Search" traversal technique and "Hashing" to store the Nodes Values in a Map and then retrieve the Node Value having highest frequency.

@sohamsshah

Copy link
Copy Markdown
Collaborator

LGTM!

@sohamsshah
sohamsshah merged commit 9df78e5 into codesONLY:master Oct 20, 2021
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