Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Finding longest palindrome from a string

by Aristotle (Chancellor)
on Aug 13, 2004 at 14:30 UTC ( [id://382685]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub aristotle {
        my $str = shift;
    ...
    
        return $palindrome;
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
        print "$rotate_count: ", hd( $str ), " ^ ", hd( $rts ), " = ", hd(
    + $mask ), "\n";
        substr $rts, 0, 0, chop $rts;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-03-28 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found