Explain and harden two shell commandsCodingYou are shown two shell commands. Explain exactly what each one does, step by step, then say how it can go wrong and rewrite it to be safer and more robust.
Last asked Jul 2026
Prove an incremental shuffle is uniformCodingA shuffle builds its result one element at a time. Show that every ordering of the elements comes out with equal probability, or find the flaw if it does not.
Last asked Jul 2026
Sort a hundred million digitsCodingYou need to sort one hundred million single digits. How do you do it fast? Explain why a general comparison sort is the wrong tool here, what to use instead, and how memory and…