no do pythonic way...
result = string == string[::-1]
2025-10-11 10:03:06
43
adamnnmnnmmmmmmmmmmmmnn :
or just reverse it using .sort(reverse=True) and write a like to ask if the original is the same as the reverse
2025-10-11 08:03:51
16
Just me :
How do we did this if there are spaces in between?
2025-10-10 16:45:20
1
dvdallen81 :
Why are these obscure tests still used? Unless you're working on OS code, the other 99.5% of coding jobs will never use anything exotic like this.
2025-10-25 02:22:32
1
cloutman300 :
Just use an array and a stack
2025-10-12 17:29:15
0
LiberalVeteran :
Using .reverse() is the easiest way in Swift since Swift strings are collections of grapheme clusters (i.e. user-perceived characters, not just bytes or Unicode scalars). Characters are different widths.
2025-10-14 19:12:49
0
ThirteenTwelve :
If l<=r ? wth? If l==r then you have the same char, bro. You did one too many checks. Also ur using 2 indexes, not pointers. damn.
2025-11-20 20:40:44
0
cristopher :
if arr == arr[::-1]
return True
else:
False
2025-11-18 17:03:54
0
To see more videos from user @greghogg5, please go to the Tikwm
homepage.