Longest palindromic substrings: Difference between revisions
m
→{{header|Raku}}: Don't bother check to see if a character is equal to itself. Pro tip: it is.
m (→{{header|REXX}}: fixed two typos.) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: Don't bother check to see if a character is equal to itself. Pro tip: it is.) |
||
Line 626:
loop {
last if $i >= @chars;
for
my int ($rev, $fwd) = $_,
loop {
$rev = $rev + 1;
$fwd = $fwd + 1;
|