Skip to content

Instantly share code, notes, and snippets.

@cjdell
Last active October 29, 2021 15:05
Show Gist options
  • Save cjdell/7e98a0bb1370df71ed4376bc30aa9999 to your computer and use it in GitHub Desktop.
Save cjdell/7e98a0bb1370df71ed4376bc30aa9999 to your computer and use it in GitHub Desktop.
Code Golf

How to play

Runtime

Node v8.11.1 with no context and strict mode enforced.

Your script

Create a script with your solution. It should be of the form similar to the following:

var play = (input) => {
  return 'your answer';
}

Open the Code Golf server. Enter email and team name and upload the file containing your solution.

Rules

  • play function must be in global scope.
  • Must work as strict. Use node with --use_strict flag to test your scripts.
  • ES6 allowed
  • Comments, line breaks and whitespace do NOT count towards program length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment