Teaching

Kadane’s algorithm, found by hand before it is shown.

The max-subarray toy

Find the stretch of numbers with the biggest total. Tap where it starts, then where it ends.

Tap where your stretch starts.

The toy did not load. Reload the page to play.

Competitive programming

Lessons

  • The max-subarray toy

    Pick the stretch of numbers with the biggest total, check it, then watch a computer find it in one pass.

    2026

  • Algorithm Arcade

    An arcade of algorithms to play, built by Ashwin for his students.

    2026

  • Maximum sum sub-array

    One classic problem, recorded for mycodeschool during a college internship.

    Jun 2014

Writing on teaching

  • Getting There, and Proving It

    An ICPC scoreboard under review, the grind behind my own rank, and what a student, a teacher or an engineer can show now that an AI can write the answer.

Kits