You can try the following algorithm:
Once you have done this, think how to adapt the algorithm to handle the special case 1111....
Have Fun! Rata
PS.: it is good that you looked for an old thread! However you'll get more answers if you'd opened a new thread and just had provided a link to the old one! well, next time ;-)
In reply to Re^2: Find duplicate digits
by Ratazong
in thread Find duplicate digits
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |