Jump to content

Talk:100 doors: Difference between revisions

Moved the '''output''' comments to a different section. -- ~~~~
m (→‎Optimized Examples: added comment about optimized solutions regarding task requirements. -- ~~~~)
(Moved the '''output''' comments to a different section. -- ~~~~)
Line 24:
I would prefer if all solutions had at least the unoptimized version, though the optimized is fine with me as well (as of this writing, Erlang is missing a unoptimized version for example) --[[User:AlexLehm|AlexLehm]] 22:19, 19 October 2011 (UTC)
 
:Optimized solutions are essentially bypassing (my opinioin) the task requirements in that they don't perform the task's description (which I interpreted as implying how to solve the task or at least, implying the method; namely: visit every door and toggle the door). Otherwise, why don't we just change the task's name to ''display the non-negative squares up to'' '''N'''? -- [[User:Gerard Schildberger|Gerard Schildberger]] 19:49, 23 June 2012 (UTC)
 
:Did anyone notice that almost all examples didn't provide any output (as per the task's two questions)? If that is acceptable, then we all could save a ton of Rosetta Code space by not including the output in most of the (other) examples and say, the '''output''' is the same as the '''yyy''' example. Or ... take my word for it, with tongue in cheek.] -- [[User:Gerard Schildberger|Gerard Schildberger]] 19:45, 23 June 2012 (UTC)
 
== Self-contradictory task description ==
Line 54 ⟶ 52:
 
It would be good to unify what output the examples should produce. Currently some give simple list of open door numbers, some list only open door numbers, one per line in a full sentence and some give a line for each door saying whether it's open or closed. Plus some add other decorations and stuff. Considering the output formatting is actually significant portion of many of the samples, the difference makes the examples somewhat difficult to compare.
 
:Did anyone notice that almost all examples didn't provide any output (as per the task's two questions)? If that is acceptable, then we all could save a ton of Rosetta Code space by not including the output in most of the (other) examples and say, the '''output''' is the same as the '''yyy''' example. Or ... take my word for it, with tongue in cheek.] -- [[User:Gerard Schildberger|Gerard Schildberger]] 19:45, 23 June 2012 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.