← Back to archive

Stdle #161 · hashes · 2026-11-14

What does this Ruby snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

h = {a: 1, b: 2, c: 3}
puts h.min_by { |k, v| v }.inspect
Hashes
4 attempts left

Answer & explanation