Talk:Longest string challenge: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Can't load https link: bypass to load site)
(→‎Restrictions: reason for them)
Line 24: Line 24:


What is the purpose of the restrictions? This is a chrestomathy. We would get a better language comparison, if we removed the restrictions. [[User:Markhobley|Markhobley]] 09:24, 13 August 2011 (UTC)
What is the purpose of the restrictions? This is a chrestomathy. We would get a better language comparison, if we removed the restrictions. [[User:Markhobley|Markhobley]] 09:24, 13 August 2011 (UTC)
: The basic task is very simple, the point of the restrictions is try and get people to think a bit out of the box and make it a bit more challenging. --[[User:Dgamey|Dgamey]] 12:00, 13 August 2011 (UTC)

Revision as of 12:00, 13 August 2011

Generalization

This is an interesting programming challenge. An active discussion is needed to strike a balance between generalization and defeating the task.

  • I would expect to see a number of languages mark this as omit.
  • Would this only be possible for languages with implicit iteration?
  • Would it be fair to relax the lists to lists of lists or supplementary lists in cases of languages like C that represent strings as arrays?
  • Etc.

How about a discussion here of how this would apply to a few languages (say in the top 20 or so)?

Similar to Averages/Mode

The problem statement itself (without the restrictions) is very similar to Averages/Mode, except that you do not need to compute the counts of elements, instead taking the length of the string serves as its "count". --208.80.119.69 00:43, 13 August 2011 (UTC)

Except that in mode you can use comparison operators and arithmetic operators. You're not allowed to do either here. Besides that, I still don't think it's really that similar. --Mwn3d 00:59, 13 August 2011 (UTC)

Can't load https link

Firefox won't load the reference link due to invalid SSL cert. --Ledrug 00:08, 13 August 2011 (UTC)
In firefox you can *temporarily* accept the cert. The site is scheduled for upgrade and I can ask if there is a way that http can be allowed for anonymous users. --Dgamey 11:55, 13 August 2011 (UTC)
The TWiki Twisty (show/hide) appears to break in newer firefox and IE. If you have something like NoScript and don't trust the scripts on the site it will show all of the hidden material below the headings. --Dgamey 11:55, 13 August 2011 (UTC)

Rereading

I think the task description should explicitly forbid (or permit, if that was the intent) reading the input twice. —Kevin Reid 03:08, 13 August 2011 (UTC)

Restrictions

What is the purpose of the restrictions? This is a chrestomathy. We would get a better language comparison, if we removed the restrictions. Markhobley 09:24, 13 August 2011 (UTC)

The basic task is very simple, the point of the restrictions is try and get people to think a bit out of the box and make it a bit more challenging. --Dgamey 12:00, 13 August 2011 (UTC)