Search
Lessons (24)
- Two Pointers & Sliding Window
… recompute every window → O(n × k) // ✅ Slide: add the new element, subtract the old one → O(n) function …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… AWS recommends a visibility timeout of at least six times the function timeout plus the configured batch window …
- React Hooks in Practice
… never inside if , loops or nested functions. 2. Only call hooks from React functions (components or custom hooks …
- DSA Interview Patterns Cheat Sheet
… intervals (merge overlapping meetings) js function mergeIntervals(intervals) { const sorted = intervals.toSorted((a, b) = a[0] - b[0 …
- SQL Interview Query Drills
… For an average per class, use a correlated subquery or partitioned window function. Q26: Third-highest distinct salary …
- Preparing for Technical Interview Rounds
… two pointers, sliding window, hash map, BFS/DFS, binary search, heap, intervals, dynamic programming. See [Data Structures & Algorithms …
- Stacks & Queues
… When a function returns, its frame is popped. js function a() { b(); } function b() { c(); } function c() { console …
- JavaScript Essentials: Event Loop, Closures & this
… Q -- "plain fn()" P["this = undefined (strict) / window"] Q -- arrow function A["this = inherited from the surrounding code …
- Month 2: Deep Learning, PyTorch and Transformers (Weeks 5-8)
… A network stacks layers. - Activation functions add non-linearity so the network can learn curves, not only straight …
- State Management (Redux, Zustand, TanStack Query)
… Don't hand-roll that with useEffect + useState . jsx import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; function …
- MVC, MVP & MVVM
… all the state and logic, no JSX function useLoginViewModel() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const …
- What to Learn in AI, and in What Order
… 5. Generative AI: Learn tokens, transformers, context windows, prompting, structured outputs, embeddings, retrieval-augmented generation (RAG), and tool …
- A WhatsApp OTP Is Only Single Use If You Make It So
… Fewer live codes, fewer chances. Generating and storing the code ts import { randomInt, createHmac } from 'crypto'; function generateOtp …
- Rust: Ownership, Borrowing and Lifetimes
… You write them only when a function returns a reference and the compiler can't tell which input …
- Python Fundamentals
… virtual environments, types and mutability, lists/tuples/dicts/sets, comprehensions, functions with args and kwargs, classes and dataclasses …
- DevOps and the Path from Code to Server
… Even if you develop on Windows or macOS, your code almost certainly runs on Linux. You want to …
- Caching & Redis
… SET product:42 (expires in 300 s) end js async function getProduct(id) { const key = product:${id} ; const …
- AI Architect Reference: Decisions, Glossary, Resources and Career
… Each token weighing which other tokens matter Context window The maximum tokens a model can see at once …
- Frontend Performance & Core Web Vitals
… render only the ~20 visible rows (TanStack Virtual, react-window) Context updates re-render everything Split contexts, or …
- ACID, Transactions & Locks
… Keep transactions short The longer a transaction holds locks, the bigger the window for a collision. - Do validation …
- Node.js and Express
… a way to say "when a GET /users/:id arrives, run these functions in order". Those functions are …
- Month 3: LLM Engineering (Weeks 9-12)
… quality, latency, cost per million tokens, context window, data privacy terms and tool-use reliability. Daily tasks 1 …
- Go Fundamentals
… Maps are also not safe for concurrent writes (see the concurrency lesson). Functions A function can return several …
- Kafka for Backend Services
… true }); // no duplicates from producer retries export async function runRelay() { await producer.connect(); while (true) { const client = await …