0

how to find a palindrome using code, which function can leave an integer in reverse order?

26th Feb 2021, 5:28 PM
Vlad Purch
Vlad Purch - avatar
3 Antworten
+ 3
Please link your attempt. You could i.e. convert the number to string and test if the order equals an inverted order.
26th Feb 2021, 7:20 PM
JaScript
JaScript - avatar
+ 2
yes convert the integer to string, then flip the string around using loop over all indices, then convert back to integer.
26th Feb 2021, 7:33 PM
Central Processing Unit
Central Processing Unit - avatar