Learn C++ STL

Lesson 3 of 9 · set and multiset: Sorted, Unique, Found in log n

Module 8 · set and multiset: Sorted, Unique, Found in log n

Full Programs: From Dice Rolls to a Running Median

Free with an accountReading

A set earns its place in small jobs you meet every week. Which faces did the die never show? Which lap was the third fastest, and did someone just paste the same text again? Six programs follow, each a little bigger, and each one adds one new idea. Read the "new thing" line above each program first; it is what that program is for.

Checking what this lesson needs for you…

What is inside Full Programs: From Dice Rolls to a Running Median

  1. Program 1: the dice faces never rolled
  2. Program 2: the k-th fastest lap
  3. Program 3: blocking a repeat in the last k messages
  4. Program 4: contest solves, sorted as pairs
  5. Program 5: a running median with two multisetsIntermediate
  6. Program 6: a spell checker with suggestionsIntermediate
Full Programs: From Dice Rolls to a Running Median | Learn C++ STL | Progsity