Pick a focused question that fits your time, stack, and interview goal.
23 results across 1 active filter
Page 1 of 1
Aggregates log entries into per-minute error counts with deterministic output.
Chooses a sequential collection from size, mutation, access pattern, memory locality, and the behavior callers actually need.
Avoids hidden quadratic work by indexing repeated matches while preserving duplicate, missing, ordering, and memory semantics.
Separates ordinal identity comparison from culture-aware display ordering and keeps hash-based collection semantics consistent.
Chooses between sequence, counted, indexed, set, and dictionary contracts based on required operations and complexity.
Implements chunking for batch processing without dropping final partial batches.
Uses complexity as a first filter while accounting for constants, locality, allocations, data size, and the complete operation sequence.
Implements duplicate suppression while preserving the first event for each idempotency key.
Explains how hash-based collections use hash codes and equality, then chooses Dictionary or HashSet from the value the program needs to store.
Flattens a tree into display paths while preserving order and preventing simple cycles.
Builds customer summaries from order rows using grouping, aggregation, and deterministic ordering.
Focuses on ToList chains, collection capacity, repeated enumeration, and memory-aware data shaping.
Describes lazy iterator execution, state-machine behavior, early termination, resource disposal, and repeat-enumeration consequences.
Implements a small LRU cache using a dictionary plus linked list for O(1) get and put.
Balances declarative transformations with explicit control flow when allocation, early exit, mutation, diagnostics, or complex state matters.
Predicts when an in-memory LINQ pipeline runs and prevents repeated work, changed results, and hidden side effects.
Chooses when to keep a sequence lazy and when to create a stable collection with ToList, ToArray, or another deliberate materialization.
Implements interval merging for scheduling-style time ranges with sorted output.
Separates restricted mutation access from a stable immutable value and chooses snapshots or structural sharing deliberately.
Implements top-K frequency selection with deterministic tie-breaking.
Explains the output shape of core LINQ transformations and uses them without hiding empty groups, duplicate keys, or excessive buffering.
Distinguishes operators that can yield incrementally from operators that must consume substantial input before producing results.
Uses async streams for incremental asynchronous production while preserving cancellation, disposal, backpressure expectations, and API boundaries.