Day 1 / 740 min
Read an array once
Keep track of what your running state means after each element.
Learn the concept
Scan an array once with a small summary (cheapest so far, best sum ending here) and rearrange it in place with read and write positions.
Open the lessonPractice
Recall without notes
Close the lesson. Explain which values your algorithm has processed and what its counter contains.