Skip to content

Random Seat assignmentλ︎

https://github.com/practicalli/clojure-practicalli-content/issues/4

Take a functional / data oriented approach to solving this problem

Descriptionλ︎

You want to randomly assign seating to a number of people for a fixed number of seats. Each seat is represented by an integer number between 1 and 30.

How do you randomly assign seats without choosing the same seat twice.

Loop / recur approachλ︎

Bad...

recursive functionλ︎