You are viewing a single comment's thread. Return to all comments →
Here's what I used:
N = int(input()) arr = list(map(int,input().split())) print(all(i>0 for i in arr) and any(str(i)[::-1]==str(i) for i in arr))
Great!
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Any or All
You are viewing a single comment's thread. Return to all comments →
Here's what I used:
Great!