practice-go
practice-go copied to clipboard
Practice Go: a collection of Go programming challenges
Go coding exercises and elegant solutions 
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.
- New solutions may come in after some time and be merged as well if they are: faster, cleaner, have less CPU/Mem footprint
Challenges
- [x] (@macocha) chess
- [x] (@kennygrant) floyd
- [x] (@ledongthuc) anagram
- [x] (@heliac2000) jaro
- [x] (@nguyengiabk) mergesort
- [x] (@nguyengiabk) wordladder
- [x] (@EvenPeng) sumdecimal
- [x] (@bediger4000) buildword
- [x] (@zerkms) shorthash
- [x] (@zerkms) romannumerals
- [x] (@zerkms) lastlettergame
- [x] (@duckbrain) reverseparentheses
- [x] (@kennygrant) functionfrequency
- [x] (@marz619) coins
- [x] (@marz619) secretmessage
- [x] (@shogg) missingnumbers
- [x] (@HDudzus) spiral
- [x] (@TomLefley) warriors
- [x] (@shogg) snowflakes
- [x] (@shogg) brokennode
- [x] (@shogg) nasacollage
- [x] (@shogg) node_degree
Run tests with benchmarks
Run it in the challenge folder:
go test -bench .
How to create new challenge from template
./new.sh challenge_name