Skip to content

adhadse/DSAWithGo

Repository files navigation

DSAWithGo

A DSA repository but everything is in Go. Leave a star🌟if you love Go and like this repository.💫

Reimplementation of this DSA repo by thisisshub with some tweaks, and new implementation for others :)

Contents 📃

  1. backtracking
  2. bit_magic
  3. graph
  4. greedy
  5. linked_list
  6. mathematics
  7. queue
  8. recursion
  9. searching
  10. sorting
  11. tree

FAQ 🤔

  1. Why in Go? Why not in Python/C/C++ etc?

As for C/C++, you can, you probably should! But when the focus is learning DSA, C/C++'s complexity can become a barrier. As for Python, it's already done by thisisshub.

Then why Go? One reason is for pure performance comparable to C, combined with the simplicity and ease like python.😎

  1. How do I use it?

Go through them one by one, and reimplement in your favourite language.

Contribute

Read Contributing Guidelines

Prerequisites 📝

Install Go for your relevant platform. If you are using editors or IDEs it's fairly easy to play through them, otherwise you can run these commands:

  • Running all tests

    go test ./...
  • Running all benchmark

    go test ./... -bench ./...
  • Benchmarking a package, go into that package and,

    go test -bench .
  • Testing a package, go into that package and

    go test .

Created By Anurag Dhadse