#need help i think the questions answer is wrong but not sure

1 messages · Page 1 of 1 (latest)

lone osprey
#

So I understand the code but shouldn't

Unique == true

clever escarp
#

looks almost like java or js

#

what is your question if the pseudocode is correct?

#

no you loop until unique=true then break

#

so you loop WHILE unique=false
then break when unique=true

#

could have been written

do{ ... }while(!unique);

instead of

while(!unique) { ... }

#

it is assumed that unique=false before the while

lone osprey
#

hm i see

clever escarp
#

also you would normally have a fatal condition to avoid infinite loop

#

so it would normally be written