Created
August 9, 2012 16:53
-
-
Save mutaku/3305832 to your computer and use it in GitHub Desktop.
make sure all sublists are only one element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checkpossibility(unsatlist): | |
if len(sorted(unsatlist, key=len, reverse=True)[0]) > 1: | |
return False | |
else: | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment