Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: substrings that consist of repeating characters

by Tux (Canon)
on Sep 29, 2020 at 15:47 UTC ( #11122340=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $string = "AAATTTAGTTCTTAAGGCTGACATCGGTTTACGTCAGCGTTACCCCCCAAGTTATT
    +GGGGACTTT";
    my %expect = qw( CCCCCC 1 GGGG 1 AAA 1 TTT 3 AA 2 GG 2 TT 5 );
    ...
    cmpthese (-2, { map {( $_ => $f{$_} )} @v });
    
    done_testing;
    
  2. or download this
    $ test.pl 1
    ok 1 - v1
    ...
    v6 105700/s 153%  76%  38%  20%   8%   6%   --  -6%
    v8 112783/s 170%  88%  47%  28%  15%  13%   7%   --
    1..8
    
  3. or download this
    $ test.pl 20
    ok 1 - v1
    ...
    v6 5934/s 155%  81%  34%  22%  14%  11%   -- -10%
    v8 6604/s 184% 101%  49%  36%  27%  23%  11%   --
    1..8
    
  4. or download this
    $ test.pl 2000
    ok 1 - v1
    ...
    v6 59.2/s 178%  81%  39%  27%  13%  10%   -- -11%
    v8 66.3/s 212% 103%  56%  42%  26%  23%  12%   --
    1..8
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-12-02 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (22 votes). Check out past polls.

    Notices?