2026-06-16 02:16:53 -04:00
2026-06-08 19:45:37 -04:00
2026-06-15 17:48:45 -04:00
2026-06-15 17:48:45 -04:00
2026-06-16 02:16:53 -04:00
2026-04-05 02:00:21 -04:00
2026-04-04 21:03:11 -04:00
new
2026-05-09 17:56:46 -04:00
2026-06-16 02:16:53 -04:00

Data Structures & Algorithms in Go

Linear

  • Stack
  • Queue
  • Double Linked List
  • Circular Buffer
  • Deque (segmented array), Not possible in Go

Tree — hierarchical, parent/child relationships

  • Binary Search Tree
  • AVL Tree
  • Heap (min/max)
  • Trie

Hash Based — key/value

  • Hash Map
  • Hash Set

Each category solves different problems:

  • Linear — ordered data, undo/redo, scheduling
  • Tree — searching, sorting, hierarchical data like file systems
  • Graph — networks, maps, social connections, dependencies
  • Hash — fast lookups, caching, counting
  • Set — membership testing, deduplication

Algorithms ωψγ

  • Kadane's Algorithm
  • Euclidean gcd
  • Fibonacci
  • Modular Arithmetic
  • Sieve of Eratosthenes
  • BFS Breadth-First Search
  • DFS Depth-First Search
  • Karatsuba algorithm

Documentation

go doc -all ./linear | bat -l go
go doc -all ./algo | bat -l go

Tests

go test ./tests/...
S
Description
No description provided
Readme 205 KiB
Languages
Go 100%