This file contains 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 fourier(nums): | |
""" | |
Fourier analysis. For a given list, returns fouriest element. | |
""" | |
return max([(sum([1 for c in str(num) if c == '4']), num) for num in nums])[1] |
This file contains 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
web: gunicorn app:app |