Index

Module 01 · DSAThe toolbox

Sorting & Searching

Sorting and Searching
Sorting and Searching · Open board

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.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Review DSA →

Saved in this browser, and to your account when you sign in.