Skip to content

Practice Go: a collection of Go programming challenges

Notifications You must be signed in to change notification settings

plutov/practice-go

Folders and files

NameName
Last commit message
Last commit date
May 27, 2024
Jun 13, 2024
Oct 2, 2018
Apr 13, 2025
Sep 7, 2024
Oct 20, 2024
Jun 3, 2022
Nov 8, 2024
Feb 25, 2017
May 27, 2024
Mar 5, 2017
May 27, 2024
Feb 22, 2025
Mar 25, 2025
Nov 19, 2017
May 27, 2024
Sep 2, 2019
Jun 27, 2017
Apr 23, 2023
May 12, 2020
Mar 30, 2017
Sep 13, 2018
Jun 16, 2018
Mar 30, 2017
Jul 14, 2017
Jul 29, 2018
Jun 3, 2022
Sep 24, 2024
Apr 13, 2025
May 27, 2024
May 27, 2024
Jul 14, 2017

Repository files navigation

Go coding exercises and elegant solutions

How to solve

  • Each challenge(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 the 3rd-party packages.
  • Implement the function.
  • Run the tests and benchmarks.
  • Create a PR and answer questions from PR template.
  • We will choose the most fast and elegant solution and merge into the repo.
  • New solutions may come in later and be merged as well if they are: faster, cleaner, have less CPU/Mem footprint

Challenges

Run tests with benchmarks

Run it in the challenge folder:

go test -bench .

How to contribute

You may suggest other challenges as well, not only of DSA type.

Create a new challenge using this small bash script and create a PR.

./new.sh challenge_name

The challenge must follow these rules:

  • Explain the challenge well in README.md file so it's clear to everyone what needs to be done.
  • Cover as much of test cases as possible, edge cases as well so people who solve it can focus on the implementation only.

Contributors

About

Practice Go: a collection of Go programming challenges

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published