Friday Hacks #124: Code Golf

Rules:

  1. All languages allowed (including Pyth)

  2. No imports/requires of non-standard library/packages. e.g. pip, gem, npm

  3. Write a method with the given type signature

  4. Time limit: 10 minutes

  5. Whitespace is not counted. Score is the number of bytes in the program, calculated with http://bytesizematters.com/

  6. Demo function calls are not counted in scoring

Code submission

Submit a pull request to the respective question folder with your answer file in the format yourname.format. e.g. johndoe.py