Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /