Search
Lessons (9)
- Linked Lists
… Reverse a linked list ⭐ The 1 linked-list interview question. Use three pointers: prev , current , next . js function …
- DSA Interview Patterns Cheat Sheet
… linked list cycle", "middle of list" Fast & slow pointers O(n), O(1) space "reverse linked list" prev …
- Microkernel (Plugin) Architecture
… MarkdownPlugin = { name: "emoji", version: "1.0.0", beforeParse: (md) = md.replaceAll(":rocket:", "🚀").replaceAll(":tada:", "🎉"), }; // plugins/external-links.ts …
- Frontend Performance & Core Web Vitals
… swap . html <link rel="preload" href="/fonts/inter.woff2" as="font" type="font/woff2" crossorigin / <link rel="preconnect …
- Trees & Binary Search Trees
… 5)) & b7((7)) end subgraph Degenerate["Degenerate (a linked list!)"] d1((1)) -- d2((2)) -- d3((3)) -- d4((4 …
- Graphs: BFS & DFS
… adjacency list The most common representation: a map from each node to the list of its neighbours. js …
- Frontend Testing Strategy
… 201 })), ]; tsx it("lists products from the API", async () = { render(<ProductsPage / ); expect(await screen.findByText("Keyboard")).toBeInTheDocument(); // findBy …
- Two Pointers & Sliding Window
… left, one moves faster Remove duplicates, move zeroes, linked-list cycle Two arrays One pointer per array Merge …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… stop the chain with 401 app.get("/orders", listOrders); function authenticate(req, res, next) { const user = verifyToken(req …