EXTREME TIMTOWTDI the other way around :)
#!/usr/bin/perl -l # http://perlmonks.org/?node_id=551038 use strict; use warnings; $_ = 'ABDBACCBBBCBDDBCDCBCCDBABCBABBBBBADACDABACC'; print "longest run: ", length eval "'".s/(.)\1*\K/'|'/gr."'";
In reply to Re^3: Longest possible run of a single character
by Anonymous Monk
in thread Longest possible run of a single character
by srdst13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |