|Welcome to the Monastery|
Re^2: Code Shortening (golf)by Young Monk (Novice)
|on Oct 19, 2010 at 17:30 UTC||Need Help??|
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?