‹ The Blind 75 · Arrays
Search in Rotated Sorted Array
nums is a sorted list of different numbers that was rotated some number of places. Return the index of target, or -1 if it is not there, in O(log n).
Three trials
-
0 of 1 stars
1 · Recall
Fill single lines: a condition, an update, a return.
Worth 10 XP
-
0 of 1 stars
2 · Rebuild
Rebuild a block, most often a loop body.
Worth 20 XP
-
0 of 1 stars
3 · Write
Write the whole function body, with the tests as a net.
Worth 40 XP