Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mikamai Coding Contest #0 - solutions

Solutions

  1. Giovanni: gist
  2. Calcagno: gist
  3. Pilu gist
  4. Nicola: gist

Performance ranking

  1. Calcagno
  • real 0m0.363s
  • user 0m0.256s
  • sys 0m0.087s
  1. Giovanni
  • real 0m1.532s
  • user 0m1.407s
  • sys 0m0.109s
  1. Pilu
  • real 0m3.320s
  • user 0m3.026s
  • sys 0m0.224s
  1. Nicola
  • real 0m12.015s
  • user 0m11.652s
  • sys 0m0.223s

Rejected implementations

My reference implementation

gist

Timing

  • real 0m0.624s
  • user 0m0.536s
  • sys 0m0.068s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment