+ 1

[Challenge] No space palindrome

Check if a Integer is a palindrome without using extra space For example : Input : 12321 Output : true Input : 1123 Output : false Have fun!

26th Feb 2018, 11:03 AM
Nitzan
Nitzan - avatar
7 Answers
27th Feb 2018, 7:25 PM
David Ashton
David Ashton - avatar
+ 2
https://code.sololearn.com/cIMIw5O74Zxp/?ref=app
26th Feb 2018, 1:39 PM
Louis
Louis - avatar
+ 1
[print("pal" if wow==wow[::-1] else "not_pal") for wow in[input()]]
2nd Mar 2018, 6:27 PM
sayan chandra
sayan chandra - avatar
0
without space?????
1st Mar 2018, 7:28 AM
sayan chandra
sayan chandra - avatar
0
Yes..
1st Mar 2018, 12:25 PM
Nitzan
Nitzan - avatar
0
i dnt understand.... whats this???without space?????????????
2nd Mar 2018, 3:53 AM
sayan chandra
sayan chandra - avatar
0
Just do it without using any data structure beside int
2nd Mar 2018, 11:38 AM
Nitzan
Nitzan - avatar