/practice-go

Practice Go: a collection of Go programming challenges

Primary LanguageGo

Go coding exercises and elegant solutions Build Status

How to solve

  • Each folder has a README.md file and *_test.go file, check it and find what kind of function you need to implement.
  • You may use anything you want except 3rd-party packages.
  • Implement the function.
  • Run tests and benchmarks.
  • Create a PR to master branch and answer questions from PR template.
  • We will choose the most fast and elegant solution and merge into the repo within 7 days.

Challenges

  1. (@macocha) chess
  2. (@kennygrant) floyd
  3. (@ledongthuc) anagram
  4. (@heliac2000) jaro
  5. (@nguyengiabk) mergesort
  6. (@nguyengiabk) wordladder
  7. (@EvenPeng) sumdecimal
  8. (@bediger4000) buildword
  9. (@zerkms) shorthash
  10. (@zerkms) romannumerals
  11. (@zerkms) lastlettergame
  12. (@duckbrain) reverseparentheses
  13. (@kennygrant) functionfrequency
  14. (@marz619) coins
  15. (@marz619) secretmessage
  16. (@shogg) missingnumbers
  17. (@HDudzus) spiral
  18. (@TomLefley) warriors
  19. (@shogg) snowflakes
  20. (@shogg) brokennode
  21. (@shogg) nasacollage
  22. telnet-chat

Run tests with benchmarks

Run it in the challenge folder:

go test -bench .

How to create new challenge from template

./new.sh challenge_name