Just solved "Search in Rotated Sorted Array" on Leetcode: https://leetcode.com/problems/search-in-rotated-sorted-array/submissions/
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.
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.