Skip to content

Conversation

@pobch
Copy link
Contributor

@pobch pobch commented May 4, 2023

  • File(s) Modified: 0235-lowest-common-ancestor-of-a-binary-search-tree.js
  • Language(s) Used: javascript

Description

The time complexity of the current solution should be O(H), not O(N) when N is the total number of node and H is the height of the tree (in a specific case H will equal to N).

@Ykhan799
Copy link
Collaborator

@pobch Thanks for the correction, will merge this change in

@Ykhan799 Ykhan799 merged commit 28e9b32 into neetcode-gh:main Sep 29, 2024
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