in reply to Re: Code Shortening (golf)
in thread Code Shortening (golf) [RESOLVED]
It will fail for a test case like AB for which, it must be A---B, (ie) output is 3.
In my solution, decrementing 3 from the result is necessary. So, a bald 'print' cant be used! Any suggestions?
In my solution, decrementing 3 from the result is necessary. So, a bald 'print' cant be used! Any suggestions?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Code Shortening (golf)
by eyepopslikeamosquito (Archbishop) on Oct 19, 2010 at 20:35 UTC |
In Section
Seekers of Perl Wisdom