Grokking the Coding Interview: Patterns for Coding Questions
Vote

0% completed

​

Solution: Bitonic Array Maximum

.....

.....

.....

Like the course? Get enrolled and start learning!
A

Anonymous

· 2 years ago

Your solution return 8 instead of 15 which is correct answer.

Your solution is inccorrect or you are missing important information in description.

A

Anonymous

· 3 years ago

Monotonically increasing or decreasing means that for any index i in the array arr[i] != arr[i+1]. I saw this test case, is it valid? arr[4] == arr[5]

[1, 2, 3, 4, 5, 5, 4, 3, 2, 1]

Anw, I'll update my answer.

A

Anonymous

· 4 years ago

Why and how do the 2 points mentioned in the solution guarantee that the final result or array max is at arr[start] or arr[end] when start == end?

Show 1 reply

Reading Progress

0%


Vote for new content