Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Design Twitter

MediumLeetCode 355 ↗

The problem, in one line. Build a tiny timeline service: post a tweet, follow and unfollow users, and fetch a user’s feed of the ten most recent tweets from themselves and everyone they follow. LeetCode 355.

The tell. Several lists that are each already in time order, and you want the newest few across all of them. That is a merge of sorted lists, and a heap holding one entry per list is how you merge without reading everything.

Included with a plan

This solution is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.