Nullbody Notes
Author

Nullbody Notes

Go backend development, learning open-source project source code together, focusing on simplicity and practicality.

60
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Nullbody Notes

60 recent articles
Nullbody Notes
Nullbody Notes
Nov 27, 2023 · Backend Development

Build a Simple Go RPC Framework – A Beginner-Friendly Project

This article walks Go beginners through designing and implementing a lightweight RPC framework called easyrpc, covering protocol design, message serialization, network communication, graceful server shutdown, client stub generation with reflect.MakeFunc, and concurrent request handling, with full source code on GitHub.

Code ExampleConcurrencyGo
0 likes · 16 min read
Build a Simple Go RPC Framework – A Beginner-Friendly Project
Nullbody Notes
Nullbody Notes
Nov 26, 2023 · Fundamentals

Binary Tree Right Side View Using Level‑Order Traversal in Go

The article explains how to obtain the rightmost node values at each depth of a binary tree by performing a level‑order (BFS) traversal, and provides a complete Go implementation that records the last node of every level as the right‑side view.

BFSGoalgorithm
0 likes · 4 min read
Binary Tree Right Side View Using Level‑Order Traversal in Go
Nullbody Notes
Nullbody Notes
Nov 24, 2023 · Fundamentals

How to Solve the Coin Change Problem Using Dynamic Programming

This article explains the classic coin change problem, models it as a minimum‑coin DP task, derives the recurrence relation, shows how to initialize the DP array with a large sentinel value, and provides a complete Go implementation that returns the optimal count or -1 when impossible.

DP recurrenceGoalgorithm
0 likes · 5 min read
How to Solve the Coin Change Problem Using Dynamic Programming
Nullbody Notes
Nullbody Notes
Nov 23, 2023 · Fundamentals

How to Merge Overlapping Intervals in Go

This article explains how to merge overlapping intervals in Go by first sorting them by their start points and then iteratively combining adjacent intervals, with a complete code example and step‑by‑step reasoning.

Goalgorithmintervals
0 likes · 3 min read
How to Merge Overlapping Intervals in Go
Nullbody Notes
Nullbody Notes
Nov 22, 2023 · Fundamentals

How to Compare Version Numbers in Go – Interview Solution

This article explains the key steps for comparing dot‑separated version strings—ignoring leading zeros, handling different lengths, and performing left‑to‑right numeric comparison—accompanied by a complete Go implementation.

Goalgorithmstring parsing
0 likes · 3 min read
How to Compare Version Numbers in Go – Interview Solution
Nullbody Notes
Nullbody Notes
Nov 20, 2023 · Fundamentals

Counting Valid Triangles: Why Reverse Traversal Matters

The article explains how to count the number of valid triangles that can be formed from an integer array by first sorting the array and then using a reverse‑order two‑pointer technique, detailing each step and providing a complete Go implementation.

algorithmsortingtriangles
0 likes · 3 min read
Counting Valid Triangles: Why Reverse Traversal Matters
Nullbody Notes
Nullbody Notes
Nov 19, 2023 · Interview Experience

How to Find the Kth Largest Element in an Array Using QuickSort

This article explains how to locate the kth largest element in an array by leveraging quicksort partitioning, showing that the target index equals len(nums)‑k and iteratively narrowing the search range until the element is found, with a complete Go implementation.

algorithmarraygolang
0 likes · 4 min read
How to Find the Kth Largest Element in an Array Using QuickSort
Nullbody Notes
Nullbody Notes
Nov 17, 2023 · Fundamentals

How to Implement an O(1) LRU Cache for Interview Success

This article explains how to implement an O(1) LRU cache in Go by combining a hash table with a doubly linked list, detailing the put and get operations, eviction policy, and providing complete, ready‑to‑run source code along with illustrative diagrams.

Cache EvictionDoubly Linked ListGo
0 likes · 4 min read
How to Implement an O(1) LRU Cache for Interview Success
Nullbody Notes
Nullbody Notes
Nov 17, 2023 · Fundamentals

How to Decode Nested Strings Using a Stack in Go

This article explains how to decode nested strings formatted as k[encoded_string] by using a stack to record repetition counts and substrings, detailing the push/pop logic with examples like 2[a3[b]] and 3[a]2[bc] and providing a complete Go implementation.

Goalgorithmnested strings
0 likes · 5 min read
How to Decode Nested Strings Using a Stack in Go