Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Why does my get_max_index function return zero? (High Water Mark Algorithm)

by AnomalousMonk (Archbishop)
on Jun 03, 2019 at 21:41 UTC ( [id://11100923]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my @arr = (1,2,3,5,10,3,4,300,1,2,-2);
    ...
     print qq{i of largest == $i (\@arr[$i] == $arr[$i])};
    "
    i of largest == 7 (@arr[7] == 300)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found