Skip to content

Instantly share code, notes, and snippets.

@dearshrewdwit
Created June 17, 2020 08:17
Show Gist options
  • Select an option

  • Save dearshrewdwit/08b1942d9e14e72bc8986029feff659d to your computer and use it in GitHub Desktop.

Select an option

Save dearshrewdwit/08b1942d9e14e72bc8986029feff659d to your computer and use it in GitHub Desktop.
Rearrange your implementation to obey the following constraints
1. Each method can only have a maximum of 5 operations, where an operation is a variable assignment or a method call.
2. Each method can be a maximum of 5 lines (excluding method definition key words)
3. The only public method available should be Secret#encrypt (private methods are free to use).
Any amount of rearranging is fine, so long as the test cases still pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment