100 doors: Difference between revisions

Content added Content deleted
Line 4,606: Line 4,606:
{
{
| i j l |
| i j l |
ListBuffer new #[ dup add(false) ] times(100) ->l
ListBuffer initValue(100, false) ->l
100 loop: i [
100 loop: i [
i 100 i step: j [ l put(j, l at(j) not) ]
i 100 i step: j [ l put(j, l at(j) not) ]