Follow

Just solved "Search in Rotated Sorted Array" on Leetcode: leetcode.com/problems/search-i

It was interesting to solve it in `O(log n)` time, as I had to use a binary search to find the pivot, instead a specific value. I love problems that take an old tool and use it in a new way.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml