Created
May 16, 2021 11:16
-
-
Save theDreamer911/6159bf2b7b582d07c23480c8a2e27d2c to your computer and use it in GitHub Desktop.
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 flip(text, arr): | |
return sorted(arr) if text == 'R' else sorted(arr, reverse=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment