A pile of four numbers split around one of them and put back together in order, then a search that opens straight to the middle of a sorted pile instead of reading it from the start.
Before you start. You need an index, a position in a list, counted from zero, and what Complexity & Big-O already gave you: that doubling the input can double the work, or square it, or barely change it, depending on the method. Everything else here, splitting a pile around one number, and opening a sorted pile at the middle, is new.
Lesson 8 of 96 in DSA
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.