Timeline for Shortest Code to Find the Smallest Missing Positive Integer
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 21, 2023 at 3:32 | history | edited | alephalpha | CC BY-SA 4.0 |
added 606 characters in body
|
Feb 28, 2023 at 23:56 | comment | added | alephalpha |
@DanStaley Non-determinism doesn't mean that the choice is random, but means that there are multiple possible values. The interpreter chooses the correct value via backtracking. The first value for ℕ is always the smallest one.
|
|
Feb 28, 2023 at 22:50 | comment | added | Dan Staley | How does this code guarantee that you get the smallest such number? | |
Feb 26, 2023 at 12:59 | comment | added | Unrelated String | Cool language! Glad to see someone's made a backtracking stack language | |
Feb 26, 2023 at 12:49 | history | answered | alephalpha | CC BY-SA 4.0 |