Distinct palindromes within decimal numbers: Difference between revisions
Distinct palindromes within decimal numbers (view source)
Revision as of 21:22, 6 April 2021
, 3 years ago→{{header|Raku}}: Whoops, important full stop
Thundergnat (talk | contribs) (→{{header|Raku}}: Add a Raku example) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: Whoops, important full stop) |
||
Line 268:
@s
}
@pal.unique.sort({.chars, .&naturally});
}
Line 281:
{{out}}
<pre>All palindromic substrings including (bizarrely enough) single characters:
100 =>
101 =>
102 =>
103 =>
104 =>
105 =>
106 =>
107 =>
108 =>
109 =>
110 =>
111 => 1 11 111
112 => 1 2 11
Line 301:
118 => 1 8 11
119 => 1 9 11
120 => 0 1 2
121 => 1 2 121
122 => 1 2 22
|