Point is: this is making good use of pre-stated requirements; in case they change, it does not take too much to update the solution, writing a generator function in few lines.
[Ah, I almost forgot how much I do look like Ming the Merciless nowadays <3; shame the main actor was a clueless jock and he rejected to make a sequel as Flash]
This comment is hidden because it contains spoiler information about the solution
How could I forget about Max von Sydow's magistral acting :)?
Point is: this is making good use of pre-stated requirements; in case they change, it does not take too much to update the solution, writing a generator function in few lines.
[Ah, I almost forgot how much I do look like Ming the Merciless nowadays <3; shame the main actor was a clueless jock and he rejected to make a sequel as Flash]
Seems you didn't try it by yourself.
Take a look at line 5
It sets a default value for
color[3]
-thus default value fortolerance
- even if none is passed.