BBSinbswebdev.hashnode.dev·6d ago · 5 min readThink in Patterns #3 — In-place CompactionYou are given an array nums. Move every 0 to the end, keep the order of everything else, and do it in place. [0, 1, 0, 3, 12] → [1, 3, 12, 0, 0]. The lazy fix is to delete each zero and append it. Wa00
BBSinbswebdev.hashnode.dev·Jul 18 · 4 min readNest → Go #2 — The `counter++` That Was a BugIn Nest I give every request an id with a counter. One line, and I never think about it again: let seq = 0; function requestId() { return `req-${++seq}`; // safe. always. } It's safe in Node becaus00
BBSinbswebdev.hashnode.dev·Jul 18 · 7 min readThink in Patterns #2 — Converging SearchYou are given an array height, where each element is a vertical line. Pick two of them. Together with the x-axis, they form a container. Return the most water it can hold. Your first instinct is to t00
BBSinbswebdev.hashnode.dev·Jul 17 · 8 min readStop Asking Local Models Nicely. Hide the Tool.Goddamn local models can't follow a single instruction. I had a sub-agent for product discovery. The persona told it, in Korean: "you're 기획자 (planner). Greet the user. Confirm the topic. Ask Step 1's00
BBSinbswebdev.hashnode.dev·Jul 11 · 4 min readlanggraph dev Had a Lot to Say Before It Actually WorkedBy the end of the last post the FastAPI app resumed correctly — the planner picked up my reply instead of restarting. But I don't develop against FastAPI. I develop against uv run langgraph dev, so I 00