Serhii Samoilenko·Nov 30, 2025Human-in-a-loop AI Interruptions in GOIn this tutorial, we’ll build an AI agent that interrupts itself to ask clarifying questions, waits for human input, then continues until…A response icon1A response icon1
Serhii Samoilenko·Nov 1, 2025Part 2: Quering Nested setsIn Part 1 we explored how to create and manage a nested set structure. In this part, we’ll learn how to query nested sets efficiently…
Serhii Samoilenko·Sep 28, 2025Part 6: Using Buf(v2) to manage proto filesBuf v2 brings a few config changes for the PHP namespaces and plugin definitions. Here is a minimal set of updates.
Serhii Samoilenko·Jun 4, 2025Top K using the Count-Min Sketch + Min-heapIn previous articles, we explored how the Top-K Min-Heap and the Count-Min Sketch work individually. In this article, we’ll combine these…
Serhii Samoilenko·May 4, 2025Count-Min SketchA Count-Min Sketch is a data structure used for estimating the frequency of items in a stream. It is especially useful when working with…
Serhii Samoilenko·Apr 30, 2025Finding the K Largest Numbers Using a Min-HeapWhen we want to find the K largest numbers in a list without sorting the entire array, a Min-Heap offers an efficient solution. The key…
Serhii Samoilenko·Apr 29, 2025K Biggest Numbers Using QuickSelectWe want to find the K largest numbers in an unsorted list efficiently. Instead of fully sorting the list, we use the QuickSelect algorithm…
Serhii Samoilenko·Apr 2, 2025Part 1: Nested setsThe Nested Sets model is a way to represent hierarchical (tree-like) structures in relational databases. It allows you to efficiently…A response icon1A response icon1
Serhii Samoilenko·Jan 11, 2025Switching the Traxxas ESC and Motor to Hobbywing ComponentsLong Story ShortA response icon1A response icon1
Serhii Samoilenko·Nov 21, 2024Red-Black Tree Deletion: Restoring BalanceThis guide explains how to restore the red-black tree’s balance after a deletion. Let’s break it down step by step: