Skip to content

Instantly share code, notes, and snippets.

@liamcain
Created August 20, 2019 23:44
Show Gist options
  • Save liamcain/3bd091191a092b2fdd222a5e1f2cbe4c to your computer and use it in GitHub Desktop.
Save liamcain/3bd091191a092b2fdd222a5e1f2cbe4c to your computer and use it in GitHub Desktop.
def minimum_candidate_filter(l):
s=list(map(str, l))
return [c for c in l if s==s[::-1] and c**(.5)%1==0]
print(minimum_candidate_filter([0, 1000, 121, 676]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment