Code Monkey home page Code Monkey logo

go-grokking-algorithms's Introduction

grokking-algorithms

Code for the book Grokking Algorithms written in Go using Type Parameters ( Generics ).

What are the additions to the original repository

I've been using type parameters to implement most of the algorithms. From time to time they offer little purpose other than seeing how they work and how to use them in a real implementation.

The most involved example is Dijkstra, which uses the graph outlined in type parameters document section Mutually referencing types. I do not recommend using this for anything really. But it was hell of lot fun learning to make this actually work.

I also added a bunch of tests for everything and in some cases, some alternative implementations too.

I will also provide some Benchmarking tests for the heck of it.

I added a bunch of comments to all the code for those who just would like to read the code, and understand why things are where they are. If anything is missing, or more explanation is required, please don't hesitate to open an issue.

Also, in some cases, I added the exercises as well. I will continue to add more if needed.

Why?

For the glory of the Sontaran Empire of course! That, and because learning is always fun. All in all the book was a fun little read, and the explanations are great. The author walks you through all the algorithms step by step to make sure you understand every aspect of it.

go-grokking-algorithms's People

Contributors

skarlso avatar s0xzwasd avatar niel-biswas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.