You are viewing a single comment's thread. Return to all comments →
Perl:
sub beautifulBinaryString { my $b = shift; my $cnt = 0; while ($b =~ m/010/) { $b =~ s/010/011/; $cnt++; } return $cnt; }
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Binary String
You are viewing a single comment's thread. Return to all comments →
Perl: