Search
Lessons (22)
- Hash Maps & Sets
… A hash map is that catalogue. A hash function turns a key (like "apple" ) into a number (a …
- DSA Interview Patterns Cheat Sheet
… 4. Optimise: "The bottleneck is the inner search… a hash map makes that O(1)." Name the pattern …
- Count, for_each, Functions, and Stable Identities
… Further reading: [for each](https://developer.hashicorp.com/terraform/language/meta-arguments/for each), [functions](https://developer.hashicorp …
- Variables, Locals, Outputs, and Validation
… Further reading: [Input variables](https://developer.hashicorp.com/terraform/language/values/variables), [outputs](https://developer.hashicorp.com/terraform …
- Rust: Types, Errors and Concurrency
… Vec<String = users.iter().map( u u.name.to uppercase()).collect(); let by id: HashMap<u64, &User = users …
- HCL, Resource Addresses, and Project Layout
… Further reading: [Configuration syntax](https://developer.hashicorp.com/terraform/language/syntax/configuration), [dependency lock file](https://developer.hashicorp …
- Data Structures for Scale
… Fingerprint (hash) each block. Then hash pairs of fingerprints together, and so on up to one root fingerprint …
- Topics, Partitions & Offsets
… order-42"] -- "hash → 1" P1[Partition 1] K2["key: order-77"] -- "hash → 0" P0[Partition 0] K3["key …
- Terraform: Start Here
… Provider Plugin that talks to an API hashicorp/aws State Mapping between resource addresses and real objects aws …
- Big-O Notation Made Simple
… O(1) Constant 1 Array index arr[5] , hash map lookup O(log n) Logarithmic ~10 Binary search …
- Payment Retries: Prevent Duplicate Charges
… a unique key, the order, the amount, the currency, and a request hash (a short fingerprint of the …
- Replication, Partitioning & Sharding
… tenant id is often safer than an arbitrary hash when tenancy is a hard isolation boundary. Avoid hot …
- Preparing for Technical Interview Rounds
… two pointers, sliding window, hash map, BFS/DFS, binary search, heap, intervals, dynamic programming. See [Data Structures & Algorithms …
- Two Pointers & Sliding Window
… br/ of seen values?"} C -- Yes HM["🗂️ Hash map"] C -- No D["Consider sorting first,<br/ then …
- Async JavaScript: Promises, async/await and Node's Event Loop
… Process in small batches (or use a library such as p-limit ): js async function mapLimit(items, limit …
- Frontend Performance & Core Web Vitals
… false, loading: () = <MapSkeleton / }); Next.js already splits every route automatically. Check what's in your bundles with @next …
- Linked Lists
… on repeat (circular), LRU caches (doubly linked list + hash map), undo stacks, OS task scheduling. Technique 1: Traverse …
- SQL vs NoSQL Databases
… profiles, CMS content MongoDB Key-value A giant hash map Caching, sessions, counters Redis, DynamoDB Wide-column Rows …
- REST API Design
… 42 GET /users/42/orders The standard CRUD map Action Method + path Success status --- --- --- List GET /articles 200 …
- Node.js and Express
… The Retainers panel shows the reference chain keeping them alive, usually an unbounded cache, a global map, an …
- Jenkins: From Install to Your First Pipeline
… workspace (needs Workspace Cleanup plugin) } } ![A declarative Jenkinsfile maps to stage columns in the Jenkins UI, and post …
- Go Concurrency: Goroutines, Channels and Context
… concurrent map writes , so protect maps with a mutex. sync.RWMutex : many readers or one writer When reads …