Skip to content

Commit

Permalink
add testcase to P23
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Mar 24, 2024
1 parent b7551c0 commit 7f1cc13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Src/Problem23.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ def rndSelect (l : List α) (n : Nat) : IO (List α) := do
let previous ← rndSelect l n
pure <| l[index]! :: previous
-- sorry

#eval rndSelect [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] 3

#eval rndSelect [1, 1, 1] 2

#eval rndSelect [1, 2, 3] 0

0 comments on commit 7f1cc13

Please sign in to comment.