Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Python code is not correct

Lee

Mar 26, 2024

Yes, it is "ordered" but the time complexities are N or NlogN. Not correct at all. Does not employ a tree.

7

0

Comments
Comments
S
Sandip Bhattacharyaa year ago

You mention that order is the number of elements smaller than the value. But the code returns the number of elements greater than the value.

On this page