
Go Graph Programs: BFS, DFS, Topological Sort and Dijkstra
Go graph programs model things that connect to each other, like cities joined by roads, users who follow users or tasks that depend on…

Go graph programs model things that connect to each other, like cities joined by roads, users who follow users or tasks that depend on…

Go tree programs teach you how to store data in a branching shape, where each item can have children below it. In this post,…

Go heap programs give you the smallest or biggest item in a collection instantly, even while items keep arriving. In this post, you will…

Go stack and queue programs show up in almost every coding interview, from “check the brackets” to “find the next greater number”. In this…

Go linked list programs are one of the most asked topics in coding interviews, because they test pointers, loops and careful thinking all at…

Go tricky output programs are short pieces of code where the printed result is not what most people expect. Interviewers love them because they…

Go generics programs let you write one function or type that works for many types, such as int, float64 and string, without copying code.…

Go mutex programs protect shared data when many goroutines read and write it at the same time, and worker pools control how many goroutines…

Go channel programs let goroutines send values to each other safely, without shared variables or locks. Go’s motto is “do not communicate by sharing…

Go goroutine programs run several pieces of work at the same time, which is the feature Go is most famous for. A goroutine is…