Talk:Longest string challenge: Difference between revisions

→‎Rereading: yeah, rereading is probably a cheat on the intent
(→‎Rereading: yeah, rereading is probably a cheat on the intent)
Line 43:
:::: If you can read the file twice then there's no need to keep an accumulator. Read once to find longest length, read again, along the way print anything that long. --[[User:Ledrug|Ledrug]] 07:47, 14 August 2011 (UTC)
::::: Ah, obvious (now that I'm up and had coffee). As worded the task also doesn't necessarily prohibit the use of a temporary file either. In Icon a file is a datatype and could be argued as a cheat. Not sure about other languages. --[[User:Dgamey|Dgamey]] 15:13, 14 August 2011 (UTC)
:::::: The more I think about rereading and see some of the discussion on it, I think it should be forbidden. --[[User:Dgamey|Dgamey]] 04:18, 15 August 2011 (UTC)
 
==Restrictions==
Anonymous user