Interview question
Why does dropout work?
Trace how changing only the dropout mask creates many weight-sharing subnetworks, then distinguish deterministic approximate model averaging from repeated stochastic passes for uncertainty.
Loading visual...
Your interview
Private to this browser. No account required.
Your curriculum
Interview question
Trace how changing only the dropout mask creates many weight-sharing subnetworks, then distinguish deterministic approximate model averaging from repeated stochastic passes for uncertainty.
Loading visual...
Interview question
Route a ranker candidate through human-judgment calibration, fast offline screening, and randomized online validation without treating any one evidence layer as a substitute for the others.
Loading visual...
Interview question
Trace why latency-sensitive inline completion needs a cancelable FIM-and-retrieval fast path, while function, chat, and agentic work belongs on a separate seconds-budget path with task-level evaluation.
Loading visual...
Interview question
Distinguish a passage-supported claim from an unsupported inference, then explain why even a supported claim needs a separate release-policy and consequence check.
Loading visual...
Interview question
Distinguish a merely large project from a senior-level ambitious-project story by checking project scale, personal decision ownership, and depth under follow-up together.
Loading visual...
Interview question
Use one tiny-batch memorization test to separate a broken training foundation from full-training optimization, overfitting, and underfitting problems, then choose the next check from the observed behavior.
Loading visual...
Interview question
Decide whether ordinary cross-validation answers the deployment question, and choose a structure-aware split, external evaluation, representative holdout, or nested evaluation when it does not.
Loading visual...
Interview question
Trace how a versioned policy becomes per-policy decisions while human review and appeals correct decisions and supply evidence for evaluation and retraining.
Loading visual...
Interview question
Locate the earliest monitoring layer that can detect a failure, and distinguish an early warning from delayed evidence that users were harmed.
Loading visual...
Interview question
Diagnose whether a failed evaluation needs changed request instructions, retrieved evidence, or model parameters, while recognizing that the three interventions can be combined.
Loading visual...
Interview question
Choose the evaluation layer that can answer a coding-assistant claim, and state what evidence that layer still cannot provide.
Loading visual...
Interview question
See why independent item encoding can search an entire catalog, while joint query-item encoding becomes affordable only after retrieval has reduced the number of pairs.
Loading visual...
Interview question
Separate the training objective (continued pretraining, supervised fine-tuning, or preference optimization) from the parameter-update scope (full weights or a parameter-efficient adapter such as LoRA).
Loading visual...
Interview question
Trace how two defensible positions become a shared decision by exposing assumptions, gathering decision-relevant evidence, updating the options, and committing while preserving an evidence-based path to revisit.
Loading visual...
Interview question
Recognize that the classical U-shaped test-error curve describes only the pre-interpolation regime and that test error can descend again after a model first fits the training set.
Loading visual...
Concept
Trace two logical KV caches through their block tables to scattered physical blocks, and identify why a shared prefix occupies one physical copy with two references.
Loading visual...
Concept
Explain geometrically why global L2-norm clipping shortens an over-threshold gradient while preserving its direction.
Loading visual...
Interview question
Choose an index by separating three decisions: whether approximation is allowed, how to avoid visiting every vector, and whether stored vectors must be compressed.
Loading visual...
Concept
Compute ECE by weighting each confidence bin's absolute calibration gap by the fraction of examples in that bin.
Loading visual...
Concept
Read a real symmetric matrix multiplication as three operations: change to orthonormal eigenvector coordinates, scale each coordinate by its eigenvalue, and change back.
Loading visual...
Concept
Trace which half of two-tower inference is paid offline for the whole catalog and which half is paid once per request, explaining why retrieval can search millions of items without running the item tower millions of times.
Loading visual...
Concept
Distinguish WSD's rollback to a hot main branch after an intermediate cooldown from WSD-S's single-path continuation from each cooled checkpoint.
Loading visual...
Concept
Trace how the offline corpus-indexing path prepares lexical and dense indexes, then follow one online query through understanding, retrieval, fusion, reranking, and evidence-grounded generation.
Loading visual...
Concept
Explain why cross-entropy still supplies a large logit gradient when the true class has near-zero predicted probability, while squared error through a saturating probability output can supply almost none.
Loading visual...
Concept
Trace why the encoder runs once while every autoregressive decoder step uses both the growing output prefix through causal self-attention and the fixed encoder memory through cross-attention.
Loading visual...
Concept
See rank-1 PCA as orthogonal projection onto the direction of greatest variance, with the discarded perpendicular residual becoming reconstruction error.
Loading visual...
Concept
Compare how two equal parameters with different gradient-history scales receive unequal coupled L2 shrinkage in Adam but equal direct shrinkage in AdamW.
Loading visual...
Concept
Follow the central CNN shape transformation: deeper stages trade spatial resolution for more channels while each unit sees a larger receptive field.
Loading visual...
Concept
Compare shared-scale and per-channel symmetric INT4 quantization to see how a high-range channel can make ordinary values collapse and how finer scale granularity restores useful code levels.
Loading visual...
Concept
Trace how a matrix maps basis vectors to its columns and therefore maps any input by taking the same linear combination of those columns.
Loading visual...
Concept
See ordinary least squares as projecting the observed target vector onto the column space of the design matrix, leaving a residual perpendicular to every feature direction.
Loading visual...
Concept
See why F1 falls toward the smaller of precision and recall instead of rewarding a high arithmetic average.
Loading visual...
Concept
Trace how scaling the loss preserves a tiny FP16 gradient during backward while unscaling in FP32 restores the original gradient before clipping and the optimizer step.
Loading visual...
Concept
Read a likelihood curve as a score over candidate parameter values for fixed observations, and identify the Bernoulli MLE at the observed success fraction.
Loading visual...
Concept
Trace one tensor chunk through the three reduce-scatter hops of a four-rank ring, then connect both three-step phases to the per-rank traffic formula.
Loading visual...
Interview question
Trace every atomic claim in a legal RAG answer to an exact passage in a versioned legal source, and route missing or unsupported evidence to remediation, refusal, or attorney review before release.
Loading visual...
Concept
Explain why shifting query and key positions by the same amount changes their absolute RoPE angles but leaves their relative attention contribution unchanged.
Loading visual...
Concept
Explain why inverted dropout scales surviving activations by 1/(1-p) during training so their expectation matches the unchanged inference-time activation.
Loading visual...
Concept
Trace how equal draws from a proposal become unequal contributions after multiplying by p(x)/q(x), and use effective sample size to recognize weight concentration.
Loading visual...
Concept
Explain why bits per token changes when the same byte string is split into a different number of tokens, while bits per byte retains a fixed denominator.
Loading visual...
Interview question
Choose work by gating candidates on user value and strategy, comparing each survivor with the next-best use of the same time, and allocating the winners across near-term delivery and longer-term leverage.
Loading visual...
Concept
Trace how one query uses keys to produce normalized weights, then applies those same weights to values to produce the attention output.
Loading visual...
Concept
Compare how Mixup and CutMix use the same 75/25 soft target while Mixup blends both examples at every input location and CutMix assigns the 25 percent contribution to a discrete patch occupying 4 of 16 equal cells.
Loading visual...
Interview question
Trace how a two-stage recommender narrows the catalog, then identify why its displayed slate—not the whole catalog—determines tomorrow's ordinary training labels.
Loading visual...
Interview question
Explain why random class-only oversampling changes the training prior rather than the deployment prevalence, then map a sampled posterior back to deployment odds.
Loading visual...
Concept
Predict why forward KL prefers a distribution that covers both modes while reverse KL can prefer a distribution concentrated on one mode when the approximation family cannot match a bimodal target.
Loading visual...
Concept
Trace what NDCG, MAP, and MRR count as credit while scanning a ranked list, then choose the metric whose relevance labels and stopping behavior match the task.
Loading visual...
Concept
Trace one Lloyd iteration by assigning each point to its nearest fixed centroid, then replacing each centroid with the arithmetic mean of its fixed assigned points.
Loading visual...
Concept
Trace one probability-mass patch through two invertible flow layers and explain why local area expansion divides its density while the layers' log-determinants add.
Loading visual...
Concept
Read precision from the predicted-positive column and recall from the actual-positive row of the same confusion matrix.
Loading visual...
Interview question
See how replacing a parameterized random sample with fixed-distribution noise plus a deterministic transform creates an ordinary backpropagation path from the loss to the encoder parameters.
Loading visual...
Concept
Decide when a ResNet shortcut can remain an identity and when it must project the input so both branches have the same shape before addition.
Loading visual...
Concept
Distinguish the two complementary mixing operations in a transformer block: attention communicates across token positions, while the position-wise FFN transforms features independently within each token row.
Loading visual...
Concept
Trace cached values forward and upstream gradients backward through local derivatives without constructing a full Jacobian.
Loading visual...
Concept
Explain why each E-step and M-step cannot decrease the observed-data log-likelihood.
Loading visual...
Interview question
Trace how outcome, trajectory, step, and resource evidence combine into a failure taxonomy that improves the offline suite and is validated against production behavior.
Loading visual...
Concept
Identify the controlled contrast in a microannealing study and explain why downstream task performance, rather than a matched-domain validation-loss improvement alone, determines whether the candidate data mix advances.
Loading visual...
Concept
Distinguish the parameter, gradient, and optimizer shards that persist on each data-parallel rank from the full wrapped unit that exists only temporarily for forward and backward compute.
Loading visual...
Concept
Use natural-frequency branches to see why a rare prior can make false positives outnumber true positives even when sensitivity and specificity are both 99 percent.
Loading visual...
Concept
Map each long-context failure mode to the technique that actually addresses it, while distinguishing positional extrapolation, dense-attention execution, and persistent serving state.
Loading visual...
Concept
Identify which training points can determine an SVM decision boundary: points on or inside the margin have nonzero dual weight, while correctly classified points beyond the margin have zero weight and can be removed without changing the fitted boundary.
Loading visual...
Concept
Given one sampled action and a baseline, use the sign of its advantage to determine whether a policy-gradient step raises, leaves unchanged, or lowers that action's log-probability.
Loading visual...
Concept
Distinguish one-step diffusion training at an independently sampled noise level from sampling, which must chain learned reverse transitions from noise to a clean sample.
Loading visual...
Concept
Trace the VAE training path from an observed input through the approximate posterior and both ELBO terms, then contrast it with generation, which samples the prior and uses only the decoder.
Loading visual...
Interview question
Trace one query row through a boolean causal mask and softmax over key columns, verifying that future keys receive zero weight and the permitted weights sum to one.
Loading visual...
Concept
See probability mass move toward a stationary split, then verify that equal counter-flow leaves that split unchanged.
Loading visual...
Concept
Trace how the add node creates both an exact identity-gradient route and a residual-Jacobian route from the same upstream gradient.
Loading visual...
Interview question
Distinguish data, tensor, and pipeline parallelism as composable compute-placement axes from FSDP or ZeRO-3 as the state-sharding policy applied across data-parallel ranks.
Loading visual...
Interview question
Trace how two successes and one failure update an illustrative Beta(1,1) prior to Beta(3,2), changing its mean from 0.50 to 0.60 without eliminating uncertainty or authorizing ineligible exploration.
Loading visual...
Concept
Choose stratified, grouped, or time-series cross-validation by identifying which class balance, entity boundary, or temporal direction the split must preserve.
Loading visual...
Interview question
Trace how uncleared parameter gradients and an unrestored evaluation mode persist into the next training batch as two independent state leaks.
Loading visual...
Concept
Read a 2D determinant as two linked facts: its absolute value is the area scale of the ordered column parallelogram, while its sign records orientation; see why dependent columns force both area and determinant to zero.
Loading visual...
Concept
See how an i.i.d. exponential-family sample collapses to a fixed-size summed sufficient statistic and why an interior MLE matches its empirical moment to the model moment.
Loading visual...
Interview question
See why the first loss contour to touch an L1 constraint can land on an axis corner and set one coefficient exactly to zero, while contact with a smooth L2 constraint usually leaves both coefficients nonzero.
Loading visual...
Concept
Distinguish the dimension each linear-attention family compresses and trace how that choice prevents an n-by-n attention matrix from being materialized.
Loading visual...
Interview question
Convert a broad claim that a technique is overrated into a defensible judgment by naming the targeted use, failure mechanism, useful boundary, and evidence that could update the position.
Loading visual...
Interview question
Trace one FP16 training step in the order that preserves small gradients without letting scaled or non-finite values corrupt the FP32 parameters.
Loading visual...
Concept
Trace a patch from its two-dimensional image location into the ordered ViT token sequence and explain why a position vector is added to every patch embedding before self-attention.
Loading visual...
Interview question
Trace why independently completed shelves must become candidates for a second composition decision that optimizes the whole homepage rather than merging every item into one global ranking.
Loading visual...
Interview question
Explain why optional reranking needs a deadline-valid fallback, why mean service time does not identify a tail, and why generated IDs still require live catalog resolution.
Loading visual...
Concept
Trace one representative weight tile through a multi-row prefill operation and four batch-one decode steps to see why weight reuse, arithmetic intensity, and the likely hardware bottleneck differ.
Loading visual...
Concept
Distinguish the distribution of individual observations from the sampling distribution of the mean, and see why the latter becomes more Gaussian and narrows at rate 1/sqrt(n).
Loading visual...
Concept
See how per-arm sample size and metric variance jointly determine the minimum effect an experiment can reliably detect.
Loading visual...
Interview question
Trace how the Bernoulli negative-log-likelihood derivative and sigmoid derivative cancel under the chain rule to produce the logistic-regression gradient (p - y)x.
Loading visual...
Concept
For eight query heads and two key/value heads, identify which queries share each key/value pair and derive the fourfold KV-cache reduction while all eight query heads remain distinct.
Loading visual...
Concept
Follow matching hidden-channel shards through a column-parallel first projection and row-parallel second projection, then identify why only the second projection requires an all-reduce.
Loading visual...
Interview question
Trace how the deployed fraud policy determines which outcomes become labels, then identify why an independently reviewed sample must cover both allowed and declined transactions.
Loading visual...
Concept
Identify which tensor values share one mean and variance in CNN BatchNorm versus transformer LayerNorm.
Loading visual...
Concept
Starting from the same preference pairs, trace which learned components and data-generation steps RLHF adds that DPO removes.
Loading visual...
Concept
Interpret universal approximation as an existence claim that some finite network stays within a chosen uniform error tolerance over a compact domain, without inferring guarantees about width, training, generalization, or behavior outside that domain.
Loading visual...
Concept
Read a linear-warmup-plus-cosine schedule at its three defining checkpoints: the peak at warmup end W, 55% of peak halfway through the decay interval, and the 10% floor at training end T.
Loading visual...
Interview question
Count answers satisfying both requirements and apply the observed joint-quality floor without confusing monitoring the existing system with permission to release a failing candidate.
Loading visual...
Concept
Distinguish the two reference points in estimator error: variance measures sample-to-sample spread around the estimator's expectation, while bias measures displacement of that expectation from the true parameter.
Loading visual...
Concept
Compare where sigmoid, ReLU, and exact GELU flatten so the connection between output shape and gradient flow is visible.
Loading visual...
Concept
Trace how corpus-wide pair counts create ranked, reusable BPE tokens that compress common words while leaving rarer words as multiple pieces.
Loading visual...
Guide
Distinguish evidence-gated reactive pretraining from ad hoc recipe changes by tracing how a recoverable mainline checkpoint, controlled side probes, multiple diagnostics, and an explicit decision feed the next training phase.
Loading visual...
Interview question
Separate the feature store's two time contracts: reconstruct the latest eligible historical value for every training example while retrieving the latest materialized value for a live serving request.
Loading visual...
Concept
Predict whether a quadratic sublevel set is bounded by checking whether every eigenvalue penalizes its eigenvector direction.
Loading visual...
Concept
Trace the two alternating GAN updates and identify which network changes, which network is frozen, and what target drives each phase.
Loading visual...
Concept
Map packed-example boundaries to reset position IDs and a causal block-diagonal attention mask that permits no cross-example attention.
Loading visual...
Concept
Separate ensemble variance into the correlated floor that remains as trees are added and the uncorrelated share that averaging can remove.
Loading visual...
Concept
Distinguish a train-validation overfitting gap from underfitting or adequate fit, then match the diagnosed failure to one targeted regularization lever.
Loading visual...
Concept
Explain how moving three bits from the fraction to the exponent gives BF16 FP32-like range but makes adjacent values near one eight times farther apart than FP16.
Loading visual...
Interview question
Distinguish a frequentist confidence procedure's long-run coverage from a Bayesian credible interval's posterior probability statement.
Loading visual...
Interview question
Apply cost-reduction levers in the senior sequence: measure request-level cost, diagnose the dominant layer, test the matching intervention, and compound only savings that preserve quality on important slices.
Loading visual...
Concept
Trace how local, global, and random attention links let distant information reach a query while each query retains only a fixed number of allowed links.
Loading visual...
Concept
Distinguish the state that changes after every micro-batch (the gradient buffer) from the parameters that change only once after K micro-batches.
Loading visual...
Interview question
Given one anchor product, distinguish the evidence and candidate produced by co-purchase, co-view, and attribute similarity, then select the signal that best serves a complementary “people also bought” shelf.
Loading visual...
Concept
Trace what survives a speculative-decoding cycle when the target model accepts an initial draft prefix but rejects a later token.
Loading visual...
Interview question
Distinguish the hidden state that continues across a truncated-BPTT boundary from the gradient path that stops at detach.
Loading visual...
Concept
Trace one missing user-item rating through the matching user and item factor vectors and see their dot product become the predicted matrix entry.
Loading visual...
Concept
Trace one squared-error boosting round from the current ensemble prediction, through signed residual targets, to a shrunken tree correction that moves every prediction toward its target.
Loading visual...
Concept
See how L2 normalization removes vector magnitude from retrieval so dot product and cosine produce the same ranking, while Euclidean distance becomes a monotonic expression of the same angle.
Loading visual...
Concept
Given one transition and the next state's action values, distinguish the action sampled by the behavior policy from the greedy action used to construct the Q-learning target.
Loading visual...
Concept
Use Jacobian dimensions to trace how a transposed Jacobian maps an output-shaped upstream gradient to a parameter-shaped gradient, with each parameter collecting sensitivity through every output.
Loading visual...
Concept
Explain why one-hot cross-entropy keeps rewarding larger correct-class logit gaps while label-smoothed cross-entropy has a finite optimum at the smoothed target probability.
Loading visual...
Guide
Compare Applied Scientist, Research Engineer, and ML Engineer as different mixtures of research, modeling, engineering, and product work rather than as interchangeable or ranked titles.
Loading visual...
Concept
Trace the lambda-theta term and see why L2 shrinkage passes through Adam's coordinate-wise history while AdamW decay bypasses it.
Loading visual...
Concept
Read a reliability diagram by comparing observed frequency with predicted confidence and use the diagonal to identify overconfidence or underconfidence.
Loading visual...
Interview question
Trace how intended use bounds an LLM's role, why a clinician must independently verify its evidence before any clinical action, and how the resulting decision and outcome return through one auditable operations loop.
Loading visual...
Concept
Predict whether conditioning on the middle node blocks or opens a three-node path, and use that distinction to explain why observing a common effect makes its otherwise independent causes dependent.
Loading visual...
Interview question
Separate the training loss that elicits a predictive quantity from the deployment rule that converts that prediction into a cost-sensitive action.
Loading visual...
Concept
Explain why shifting both token positions by the same amount leaves the RoPE angle gap and the ALiBi distance penalty unchanged, while identifying where each method injects relative position.
Loading visual...
Guide
Reclassify familiar interview rounds as overlapping evidence for five cross-cutting senior Applied Scientist signals, then prepare directly for the signal each prompt can reveal.
Loading visual...
Interview question
Select a defensible peak learning rate from the sustained descent of a logarithmic range-test curve with margin before instability, then distinguish that peak from the warmup and decay schedule used during full training.
Loading visual...
Concept
Predict whether a gradient grows, stays stable, or vanishes as a small representative Jacobian scale compounds over many backward steps.
Loading visual...
Concept
Trace how overlapping neighborhoods of core points expand one cluster, while a nearby non-core point becomes border and an isolated point remains noise.
Loading visual...
Concept
Map one imbalanced classifier operating point into ROC and precision-recall coordinates and see why the two views create different intuitions.
Loading visual...
Concept
Trace one token through top-2 routing and distinguish the two experts that perform compute from all four expert parameter sets that remain resident in memory.
Loading visual...
Concept
Contrast how proposal- and grid-based detectors collapse redundant candidates with NMS against how DETR learns distinct prediction slots through one-to-one matching and emits its set without NMS.
Loading visual...
Concept
Distinguish autoregressive sampling, which appends one element per serial step, from diffusion sampling, which revises every element of the current state in parallel at each serial denoising step.
Loading visual...
Concept
Trace four decode steps and distinguish the single K/V pair appended at each step from the growing set of cached pairs that the newest query must read.
Loading visual...
Concept
Trace how naive Bayes multiplies token likelihood ratios into a decisive class score, then see why correlated features can preserve the winning argmax while making the resulting probability overconfident.
Loading visual...
Concept
Count pipeline fill and drain slots in a three-stage, four-micro-batch schedule and connect the visible idle cells to the simple pipeline bubble formula.
Loading visual...
Concept
Follow one query block as key and value blocks stream through SRAM tiles, updating softmax state without materializing the full score matrix.
Loading visual...
Concept
Explain why adding one constant to every logit leaves softmax cross-entropy unchanged while changing log Z, and identify the common offset that z-loss anchors.
Loading visual...
Interview question
Explain how one scalar-loss reverse sweep reuses cached forward values to produce a gradient for every parameter.
Loading visual...
Guide
Trace one personalized-search request into an exposure record and explain why that record, including the candidates and policy that produced it, is the necessary seam between serving, counterfactual evaluation, and retraining.
Loading visual...
Concept
Trace how an HMM carries temporal dependence through a first-order hidden-state chain while each observation is generated only from its same-time state.
Loading visual...
Concept
See that logistic regression is linear on the log-odds scale: equal steps in the linear score multiply the odds, while the sigmoid compresses those steps into unequal probability changes near zero and one.
Loading visual...
Interview question
Distinguish negative hardness from label validity: mine candidates the current model confuses with the positive, but apply a negative gradient only after evidence says the candidate is truly non-relevant.
Loading visual...
Guide
Trace how one user request becomes several model calls that repeatedly carry fixed prompt and retrieval tokens while accumulated history makes each later call larger.
Loading visual...
Concept
Compare raw SGD with momentum on an alternating gradient sequence and explain how momentum amplifies the consistent component while reducing the relative cross-valley oscillation.
Loading visual...
Concept
Map each root-to-leaf rule path to one axis-aligned region of feature space and its constant leaf prediction.
Loading visual...
Concept
Explain how one observation in an overlap region receives nonzero responsibility from multiple Gaussian components and therefore contributes fractionally to each component's M-step update.
Loading visual...
Concept
Trace how iteration-level scheduling replaces a completed request with a queued request at the next decode step while unfinished requests remain active.
Loading visual...
Concept
Trace how a state becomes an action in value-based and policy-based control, then locate the critic in an actor-critic without mistaking it for the action selector.
Loading visual...
Guide
Distinguish company-wide reach from senior-principal leverage by tracing which decisions principal owners make independently, which conflicts cross a shared interface, and which evidence reopens the doctrine.
Loading visual...
Interview question
Turn an ambiguous stakeholder symptom into an explicit scope, then choose the smallest time-boxed experiment that resolves the biggest unknown before committing to v1.
Loading visual...
Interview question
Given a multiclass probability vector and one-hot target, interpret p - y as the logit update: gradient descent raises the true-class logit, lowers every competing logit in proportion to its probability, and preserves a zero-sum shift.
Loading visual...
Concept
Use arithmetic intensity to explain why batching raises decode's bandwidth-limited throughput ceiling and why only operations beyond the hardware ridge become compute-bound.
Loading visual...
Interview question
Classify each feature by its required freshness and trace batch, streaming, and request-time values into one feature vector without forcing every signal onto the most expensive clock.
Loading visual...
Interview question
Separate an observed optimizer generalization gap from the contested claim that a geometrically sharp minimum alone causes poor generalization.
Loading visual...
Interview question
See why per-request randomization can switch models inside one conversation while per-conversation assignment preserves state.
Loading visual...
Concept
Explain why checkpointed chain memory contains both L/K saved segment boundaries and K temporary activations during recomputation, and why balancing those terms puts K near the square root of L.
Loading visual...
Concept
Given the sign of one sample's advantage, identify which probability-ratio boundary creates PPO's plateau and explain why moving farther in that beneficial direction gives no additional clipped-objective gain.
Loading visual...
Interview question
Explain why one target-model pass can verify several drafted positions at near the latency of one decode step when target inference is limited by reading weights rather than arithmetic.
Loading visual...
Guide
Trace how production evidence grounds human judgment, human judgment calibrates scalable checks, and production drift can invalidate the offline eval.
Loading visual...
Concept
Predict why a ReLU layer needs weight variance 2 divided by fan-in to preserve activation scale, and how a smaller or larger factor compounds through depth.
Loading visual...
Concept
Trace one shared state representation into the actor and critic objectives, and identify where the advantage must be treated as a fixed signal during the actor update.
Loading visual...
Concept
Trace future TD residuals into one advantage estimate, seeing that each additional time step contributes one more factor of gamma lambda and that the same sum can be computed by scanning backward.
Loading visual...
Concept
See why fixing the item factors makes every user-vector update independent, and fixing the user factors makes every item-vector update independent.
Loading visual...
Concept
Trace greedy non-maximum suppression from scored, overlapping boxes to the retained detections by following score order and the IoU threshold.
Loading visual...
Concept
Trace how an IVF-PQ query first narrows the partitions to scan and then replaces full-vector distance work with one lookup per product-quantized subvector.
Loading visual...
Concept
Map each overlapping receptive field to one im2col matrix column, then trace how one flattened filter computes every output position with a single matrix multiplication.
Loading visual...
Concept
Distinguish the 15 percent target-selection step from the conditional 80/10/10 input-corruption step, and identify exactly which positions receive direct masked-language-modeling loss.
Loading visual...
Concept
Explain why a fixed top-k candidate count can capture very different probability mass at confident and uncertain decoding steps, while top-p changes the candidate count to reach a fixed cumulative-mass threshold.
Loading visual...
Guide
Trace how lexical and dense retrieval preserve complementary relevant passages for recall, then distinguish fusion from the query-aware reranking step that selects a small high-precision context.
Loading visual...
Concept
Distinguish uncertainty within each posterior model draw from disagreement between the draws' predictive means, even when the aggregate predictions occupy the same overall output range.
Loading visual...
Concept
Given the same uncertain arm estimates, identify the different quantity that epsilon-greedy, UCB, and Thompson sampling maximize.
Loading visual...
Concept
Explain how shared per-feature embeddings let a factorization machine estimate the interaction coefficient for a feature pair that never appeared together in training.
Loading visual...
Concept
Given one state lattice, distinguish how forward-backward forms a posterior for a state at one timestep from how Viterbi forms one globally consistent state path.
Loading visual...
Concept
Explain how kernel similarity to observed inputs simultaneously shapes a Gaussian process posterior mean and reduces posterior function uncertainty at a query location.
Loading visual...
Concept
Connect a target node's graph neighborhood to the corresponding row of normalized adjacency, then trace how that row aggregates node features before the shared linear transform and activation.
Loading visual...
Concept
Trace how a polynomial kernel replaces two explicit high-dimensional feature mappings and their dot product with one low-dimensional calculation that returns exactly the same scalar.
Loading visual...
Concept
Explain how increasing softmax temperature exposes the teacher's relative preferences among non-target classes while preserving their order, giving the student more information than a one-hot label.
Loading visual...
Concept
Compute one LSTM cell update coordinate by coordinate, then read the direct backward multiplier from the same forget gate.
Loading visual...
Concept
Trace one full token sequence through per-head Q, K, and V projections, parallel attention, concatenation, and the output projection while tracking feature dimensions.
Loading visual...
Concept
Distinguish pruning individual weights from removing whole output channels by seeing whether the matrix shape presented to dense hardware changes.
Loading visual...
Concept
Distinguish the local-neighborhood relationships that t-SNE and UMAP are designed to preserve from inter-cluster gaps and rendered cluster footprints that the 2D map does not reliably preserve.
Loading visual...
Concept
Distinguish how CTC, RNN-T, and attention turn many acoustic frames into fewer output tokens by tracing what advances at each decoding step and which prior outputs are available.
Loading visual...
Concept
Distinguish self-attention from cross-attention by tracing which sequence supplies Q, K, and V and predicting the resulting attention-matrix shape.
Loading visual...
Concept
Trace how a factor collapses an entire branch into an unnormalized function of one boundary variable, then combine matching entries from independent branches to obtain that variable's marginal.
Loading visual...
Concept
Interpret a word analogy as an approximately shared displacement between two pairs, rather than as four words that merely occupy nearby points.
Loading visual...
Concept
Trace the CTC collapse operation in its required order and explain why a blank between identical labels preserves both labels.
Loading visual...
Concept
Compare independent emission choices with a CRF's whole-path score, and see how a transition score can replace an incoherent BIO sequence with a coherent one.
Loading visual...
Concept
Trace how liked-item feature vectors become a user profile, then explain why that profile can score a brand-new item without any interaction history.
Loading visual...
Concept
Trace where the backward signal travels for REINFORCE, Gumbel-Softmax, and straight-through estimation relative to each method's hard or relaxed forward computation.
Loading visual...
Concept
Separate cross-feature covariance created by shared latent factors from feature-specific variance created by diagonal noise, then identify the noise constraint for FA, PPCA, and PCA.
Loading visual...
Concept
Explain why DistMult must assign the same score to an antisymmetric relation and its reversed triple, while the complex conjugate in ComplEx removes that forced equality.
Loading visual...
Concept
Trace one feature through every ordering in a three-feature model and recognize that its SHAP value averages context-dependent marginal contributions rather than using one leave-one-feature-out difference.
Loading visual...
Concept
Use each training phase as an evidence gate, and return to the earliest failed assumption instead of tuning around an unverified pipeline.
Loading visual...
Concept
Trace how blank and token transitions consume different axes of the RNN-T lattice, and explain why many monotonic paths can emit the same transcript.
Loading visual...
Concept
Separate BM25's diminishing return for repeated matches from its penalty for finding the same number of matches in a longer document.
Loading visual...
Concept
See how an input can cross a decision boundary while remaining inside the perturbation set allowed by a stated threat model.
Loading visual...
Interview question
Trace how evidence about severity, exposure, uncertainty, and reversibility leads to the smallest mitigation that bounds harm without treating delay as free.
Loading visual...
Interview question
Separate metrics that authorize or veto a product launch from metrics that only explain behavior or qualify a model for online testing.
Loading visual...
Concept
See why a contextual-bandit log contains a reward only for the chosen action and why a target policy cannot be evaluated where the logging policy had zero support.
Loading visual...
Interview question
Turn a paper's central claim and headline evidence into one prioritized alternative explanation and one experiment whose outcome would materially change belief in the claim.
Loading visual...
Interview question
Order the investigation so each check eliminates an entire layer of causes before forming a narrower model-quality hypothesis.
Loading visual...
Interview question
Choose an ablation where the claimed mechanism and the strongest resource-confound explanation make different, pre-specified predictions.
Loading visual...
Interview question
Apply validity, practical-effect, and guardrail gates in order so a statistically significant result is not mistaken for a ship decision.
Loading visual...
Concept
Compare where acoustic evidence, pronunciation knowledge, text-only language knowledge, and operational controls enter hybrid and end-to-end ASR systems, and identify which changes require retraining the learned core.
Loading visual...
Concept
Distinguish covariate, label, and concept shift by the joint-distribution factor that changes, then decide whether unlabeled target inputs contain enough evidence to adapt.
Loading visual...
Interview question
Trace why keeping only each block's local top-k and merging it with the running top-k preserves the exact global top-k without storing the full query-by-item score matrix.
Loading visual...
Interview question
Trace how a narrowing ranking funnel reserves expensive scoring for fewer candidates while every request remains inside one end-to-end latency ceiling and one unit-cost ceiling.
Loading visual...
Interview question
Explain why distributed evaluation must sum each shard's TP, FP, TN, and FN counts before computing F1 rather than averaging shard-level F1 values.
Loading visual...
Interview question
Decide whether to fund one more bounded experiment or stop and redirect by comparing only forward evidence, opportunity cost, and transition value rather than past spend.
Loading visual...
Concept
Separate the global state and joint actions available to a centralized learner during training from the local observation available to each policy during decentralized execution.
Loading visual...
Concept
See why potential-based shaping can give dense progress feedback without making a waypoint loop profitable, while an arbitrary positive event bonus can be farmed and change the task.
Loading visual...
Concept
Trace why decoder upsampling can restore output size but not an erased object boundary, and explain how a same-scale encoder skip supplies the fine spatial evidence needed to place that boundary.
Loading visual...
Concept
Trace how moving one speaker-verification threshold changes false rejects and false accepts on the same set of target and non-target trials.
Loading visual...
Concept
Trace why streaming ASR can emit a token before speech ends while that token remains revisable, and distinguish the waits that determine first-token latency from endpoint finalization latency.
Loading visual...
Interview question
Separate the bounded implementation work delegated to a coding agent from the contract setting, independent verification, and acceptance authority retained by the engineer.
Loading visual...
Concept
Distinguish useful predictive signal in a visible reasoning trace from proof that the trace faithfully exposes the computation that caused an action.
Loading visual...
Interview question
Given an aggregate loss spike or rank-local NaN, localize the first bad transition across step, rank, layer, and tensor or sample before testing one causal family, while treating recovery as separate from root-cause evidence.
Loading visual...
Interview question
Separate the quality of a values decision based on evidence available at the time from its eventual outcome, while still using the outcome to improve the next decision.
Loading visual...
Interview question
Trace why summing d independent unit-variance query-key products produces variance d, while dividing the resulting logit by square root of d restores unit variance.
Loading visual...
Interview question
Choose the narrowest safe recovery scope by testing whether ranks share one proven training state before retrying, rebuilding a group, or rolling back.
Loading visual...
Interview question
Trace how an adaptive red-team finding becomes an owned mitigation, a residual-risk release decision, and a static regression test while production evidence updates the threat model.
Loading visual...
Interview question
Decide whether a successful trajectory is eligible for quality-score aggregation by applying a hard policy gate to its evidence before producing a training signal.
Loading visual...
Interview question
Trace how KV admission and the per-iteration token budget protect memory capacity and decode latency at the same time.
Loading visual...
Concept
Distinguish unsafe collective replay after a partial optimizer commit from safe recovery at a shared checkpoint boundary.
Loading visual...
Concept
Trace one source sample through identity-preserving curation decisions into a versioned weighted mixture, then use the same lineage to identify affected checkpoints.
Loading visual...
Guide
Turn recruiter-confirmed round constraints into targeted practice instead of inferring an interview loop from the company name.
Loading visual...
Guide
Build one bounded ownership claim that a concise statement, an inspectable artifact, and an independent witness can each support without requiring identical wording.
Loading visual...
Interview question
Trace one beam-search expansion and explain why EOS hypotheses leave the live frontier before top-k pruning while remaining eligible for final ranking.
Loading visual...
Interview question
Match the newest row of full-prefix causal attention to one-token cached attention and identify exactly which key and value projections are reused.
Loading visual...
Interview question
Trace how random A and zero B make a LoRA adapter an exact no-op at initialization while still giving B, but not A, a gradient on the first backward pass.
Loading visual...
Interview question
Explain why a shared intermediate must receive and sum every downstream gradient contribution before its local backward function propagates upstream once.
Loading visual...
Interview question
Trace the unchanged residual stream through a pre-norm decoder block while normalized branches compute and add attention and MLP updates.
Loading visual...
Interview question
Choose a matched black-box probe where competing hypotheses make different predictions, rather than spending queries on variations that all hypotheses explain.
Loading visual...
Concept
Trace how indirect prompt injection can influence a model, then identify the external authorization boundary that prevents a proposal from becoming asset compromise.
Loading visual...
Concept
Classify a loss event as transient, persistent, divergent, or metric-only from its trace while recognizing that trace shape does not identify the underlying causal family.
Loading visual...
Concept
Trace how activation patching replaces one internal state in a corrupted run with the corresponding state from a clean run, and interpret output recovery as causal evidence for that specific contrast and intervention rather than proof of a complete mechanism.
Loading visual...
Concept
Test whether an intervention removed a conditional unwanted policy rather than only suppressing its known trigger, while separately checking that useful capability remains.
Loading visual...
Concept
Locate where image and text information first meet in a dual encoder, an encoder-plus-language-model system, and a unified token model, then connect that meeting point to each pattern's output capability.
Loading visual...
Interview question
Distinguish reducing total instruction work from shortening the dependent chain that determines elapsed cycles in an accelerator trace.
Loading visual...
Concept
Explain why reward-model validation on collected comparisons does not guarantee reliable rewards after the policy is optimized.
Loading visual...
Interview question
Reorganize a technical project from a chronological tour into three self-contained decisions that remain defensible when questions change the presentation's depth or order.
Loading visual...
Concept
Trace one agent episode across the environment and grader contracts, then explain why a hard policy failure must remain separate from quality scores.
Loading visual...
Concept
Explain why behavior cloning's training distribution can stop matching the states its learned policy visits, and trace how DAgger uses expert labels on those visited states to reduce the mismatch.
Loading visual...
Concept
Given a proposed safety technique, identify whether it improves judgment under a capability gap, limits harm under intentional subversion, or contributes evidence to both.
Loading visual...
Concept
Trace why a hierarchical all-reduce combines values on fast local links before exchanging one partial result per group across the slower scale-out network.
Loading visual...
Concept
Identify the independent sampling unit and keep every dependent observation attached to it when constructing a bootstrap replicate.
Loading visual...
Concept
See the backdoor path that makes an observed support-message association differ from the intervention effect.
Loading visual...
Concept
Trace one device's fixed query block as every key/value block visits it, and connect each visit to one exact running-softmax output rather than separate per-block softmaxes.
Loading visual...
Concept
See that InfoNCE asks an anchor to identify one declared positive among all candidates, so positive and negative sampling choices determine both the learned invariance and false-negative pressure.
Loading visual...
Concept
Distinguish an event that was available by prediction time from a late-arriving event whose event timestamp alone makes it look eligible.
Loading visual...
Concept
Read two thresholds as three action regions and see why asymmetric error costs make automatic decisions expensive near the review region.
Loading visual...
Concept
Distinguish a mature negative from a pending, censored, or policy-unobserved outcome, then trace how only the observed subset shapes the next deployed policy.
Loading visual...
Concept
Distinguish an evaluation that provides independent confirmation from one that has become part of development through repeated feedback.
Loading visual...
Interview question
Distinguish the lifecycle contracts that need one organization-wide authority from the workload execution that product teams can keep behind adapters during incremental adoption.
Loading visual...
Concept
Determine the sign of a covariance contribution from whether each paired observation lies on the same or opposite side of its variable's mean.
Loading visual...
Concept
Classify a model-gain confidence interval by whether it rules out no effect and whether it establishes a gain large enough to change the decision.
Loading visual...
Concept
Explain why LambdaRank gives a larger update to the same pairwise ordering error near the top of a ranked list by scaling the pair signal with the NDCG change caused by the swap.
Loading visual...
Concept
Distinguish an LLM judge's score from a validated evaluation decision by routing exact constraints to deterministic checks and uncertain semantic judgments through human calibration and review.
Loading visual...
Concept
Trace one action-value Bellman backup from a current state through stochastic next states, then probability-weight their immediate-reward-plus-discounted-value returns.
Loading visual...
Concept
Traverse the same immutable ML lineage graph backward from a deployment to reconstruct its exact inputs and forward from a faulty transform to identify every affected model and deployment.
Loading visual...
Concept
Distinguish task-gradient magnitude imbalance from directional conflict so the diagnosis, rather than equal raw loss weights, determines the intervention.
Loading visual...
Concept
Trace why fixed training compute creates an interior loss-minimizing allocation between model parameters and training tokens rather than rewarding either extreme.
Loading visual...
Interview question
Distinguish the tensor-parallel axis that divides each model replica from the data-parallel axis that creates independent data replicas, then apply the correct axis to model-state and global-batch accounting.
Loading visual...
Concept
Separate relevance from exposure, then trace how inverse examination weighting makes two positions with identical latent relevance contribute equal expected signal under a position-based examination model.
Loading visual...
Concept
Choose among Bernoulli, binomial, Poisson, and exponential models by defining what one observation records.
Loading visual...
Concept
Distinguish an operation's total duration from the exposed portion that extends synchronized step time.
Loading visual...
Concept
Distinguish a best-run leaderboard from a fair comparison that predeclares matched opportunities, retains every repeated run, and reports an effect with uncertainty.
Loading visual...
Concept
Given one prompt's verifier rewards, identify which outputs receive positive, negative, or zero relative advantage and explain why an equal-reward group supplies no preference direction.
Loading visual...
Concept
See why sharding both non-contracting output axes over the same two-device mesh axis computes only C[0,0] and C[1,1], and why an input must be gathered or resharded before the missing cross-index blocks can be formed.
Loading visual...
Concept
See why adding devices to a fixed workload can reduce wall time while increasing total accelerator-hours when strong-scaling efficiency falls.
Loading visual...
Concept
Separate evidence used to admit synthetic examples into training from fresh held-out evidence used only to confirm that the trained model learned the target capability.
Loading visual...
Concept
Separate proposal coverage from selection quality by explaining how extra compute can generate a correct candidate yet still return a wrong answer when the verifier ranks a proxy instead of correctness.
Loading visual...
Guide
See how one fixed accelerator budget becomes a complete five-envelope portfolio whose protected serving, evaluation, and recovery capacity cannot be silently consumed by a promoted training run.
Loading visual...
Guide
Trace how one ranking policy creates both an immediate viewer-feedback loop and a delayed creator-supply loop, so a short-term viewer win cannot settle the ecosystem decision.
Loading visual...
Guide
Trace one consequential tool action from model proposal through policy enforcement and narrow execution to authoritative outcome evidence, while identifying which owner controls each boundary.
Loading visual...
Concept
Given a transformer configuration, separate training compute, training model state, inference weights, and per-sequence KV cache by identifying the dimensions and multiplicities that belong in each budget.
Loading visual...
Interview question
Trace how an already-authorized action can only retain or lose authority at the independent safety boundary, then see how authoritative outcomes and aggregate evidence can reduce authority for the next action.
Loading visual...
Interview question
Distinguish shared repository context from execution authority: inline, chat, and review can generate or advise, while only the asynchronous agent may use bounded tools in an isolated workspace, and the developer still controls acceptance.
Loading visual...
Interview question
Distinguish the control plane's authorization and version decisions from execution work and from the evidence plane's durable record of decisions and effects.
Loading visual...
Interview question
Trace a source restriction through derived data, manifests, runs, checkpoints, and released models while distinguishing future-use exclusion, stored-artifact deletion, and model-level response.
Loading visual...
Interview question
Trace why a recovered screen frame that arrives last must remain historical, and how a request-specific freshness gate waits for a new keyframe or abstains instead of treating arrival order as current state.
Loading visual...
Interview question
Distinguish fixed quarterly budget fences from physical partitions, then trace how the capacity broker reclaims checkpointable offline work without spending the protected serving floor or recovery reserve twice.
Loading visual...
Interview question
Trace how viewer-randomized treatment and control cells share creators, so exposure in both cells changes next-period creator production and contaminates the future inventory served to both cells.
Loading visual...
Concept
See mutual information as the part of X's uncertainty removed by observing Y, while the noisy-channel inset explains why both marginals can remain fair.
Loading visual...
Interview question
Use the first difference of each adjacent word pair as a directed edge, then emit zero-indegree letters with Kahn topological sorting.
Loading visual...
Interview question
A postorder height function returns a nonnegative height for a balanced subtree and -1 as a failure sentinel that ancestors propagate immediately.
Loading visual...
Interview question
For each possible selling day, subtract the lowest price in its scanned prefix and preserve the largest profit.
Loading visual...
Interview question
After sorting and fixing one value, pointer moves discard pairs that cannot sum to its complement.
Loading visual...
Interview question
Build TP, FP, and FN with elementwise Boolean masks, then divide TP by predicted-positive and actual-positive totals with zero-denominator guards.
Loading visual...
Interview question
Preserve the inclusive sorted interval that can still contain target 11.
Loading visual...
Interview question
Snapshotting the queue length separates the current tree level from children appended for the next level.
Loading visual...
Interview question
Postorder returns one extendable branch to a parent while scoring a complete path through each node with both nonnegative child gains.
Loading visual...
Interview question
Form scaled query-key scores, mask the strict upper triangle before softmax, then use prefix-only weights to mix values.
Loading visual...
Interview question
The count for the next step is the sum of the counts for the two preceding positions.
Loading visual...
Interview question
Create one mapped copy per original node, then reproduce every adjacency entry between copies.
Loading visual...
Guide
Use the four-question rehearsal cue, state, invariant, and move to rebuild a solution instead of memorizing its code.
Loading visual...
Interview question
For each amount, minimize one plus every already-solved predecessor amount.
Loading visual...
Interview question
Build ways[total] by choosing each eligible final number and adding ways[total - number].
Loading visual...
Interview question
Carry the remaining target, reuse the current sorted index, and break when the next choice is too large.
Loading visual...
Interview question
The next preorder value becomes a root, and its inorder position partitions the exact ranges passed to its left and right recursive calls.
Loading visual...
Interview question
Evaluate both boundary walls, then move only the shorter wall because keeping it cannot produce a taller container at a smaller width.
Loading visual...
Interview question
A set keeps one entry per distinct value, so any duplicate makes its final size smaller than the input size.
Loading visual...
Interview question
Count endings with at most 3 odds and at most 2 odds at every R, then subtract 14 - 12.
Loading visual...
Interview question
The set-bit count for value reuses the completed count for value >> 1 and adds value & 1.
Loading visual...
Interview question
Emit only zero-indegree courses; remove each outgoing edge and enqueue a neighbor exactly when its count reaches zero.
Loading visual...
Interview question
Only dequeue zero-indegree courses; removing their outgoing edges may make new courses ready.
Loading visual...
Interview question
Compute stable log-normalizers per example, subtract the indexed correct logits, then average example losses.
Loading visual...
Interview question
Unresolved temperatures are nonincreasing; a strictly warmer day pops waiting indices and writes their first qualifying distances.
Loading visual...
Interview question
Each [ saves its outer string and repeat count so ] can restore exactly one nesting level.
Loading visual...
Interview question
At each digit, add one-back decodings for a valid single digit and two-back decodings for a valid 10..26 pair.
Loading visual...
Interview question
A literal follows one child; a dot recursively tries each child until one full-length terminal path succeeds.
Loading visual...
Interview question
Fill prefix edit costs: matches copy the diagonal; mismatches add one to min(insert, delete, replace).
Loading visual...
Interview question
A decimal length before # makes each payload boundary explicit, even when the payload contains # or is empty.
Loading visual...
Interview question
After completed insertions, ordered halves and balanced sizes expose the middle ranks at the heap roots.
Loading visual...
Interview question
Retain the minimum by comparing middle with the current right boundary.
Loading visual...
Interview question
With exactly n-1 undirected edges, reaching all n nodes proves the graph is one connected acyclic tree.
Loading visual...
Loading visual...
Interview question
Break the circle into two endpoint-excluding lines, run take-or-skip DP on each, and keep the larger result.
Loading visual...
Interview question
For each prefix, compare skipping the current house with taking it after the last compatible prefix.
Loading visual...
Interview question
Each root-to-node path is one shared prefix; terminal state distinguishes a complete word from a mere prefix.
Loading visual...
Interview question
Partition sorted ranges into a copied prefix, one growing overlap span, and an untouched suffix.
Loading visual...
Interview question
Postorder recursion returns inverted child subtrees, then the parent assigns old right to left and old left to right.
Loading visual...
Interview question
Scan only reachable positions and preserve the farthest index any processed jump can reach.
Loading visual...
Interview question
Binary-search the first speed whose ceiling-division total is at most 8 hours.
Loading visual...
Interview question
A size-k min-heap retains the k largest values seen, so its root is the kth largest.
Loading visual...
Interview question
Iterative inorder exposes BST values in ascending order, so the fourth pop is the answer.
Loading visual...
Interview question
Keep increasing (start,height) candidates; the first shorter bar closes each taller candidate at its exact maximal width.
Loading visual...
Interview question
With a cycle, a pointer moving two links per round gains one cycle position on a pointer moving one link, so they must meet.
Loading visual...
Interview question
Fill prefix states left to right: a match takes diagonal + 1; a mismatch takes max(left, up).
Loading visual...
Interview question
Only values without a predecessor start a run; then advance one value at a time.
Loading visual...
Interview question
Treat larger-neighbor moves as a DAG, recursively solve each cell once, and memoize the longest suffix length returned to its predecessors.
Loading visual...
Interview question
For every achievable length, retain the smallest ending value found so far.
Loading visual...
Interview question
Expand every character center and every gap center. Save only a strictly longer accepted range.
Loading visual...
Interview question
Keep a candidate length while window length - historical max frequency stays within k = 1.
Loading visual...
Interview question
Keep [L..R] duplicate-free by jumping L past a repeated character that is still inside the window.
Loading visual...
Interview question
BST ordering discards one whole side until the targets split at their lowest shared ancestor.
Loading visual...
Interview question
The map gives direct node access while the doubly linked order exposes the eviction candidate at its left edge.
Loading visual...
Interview question
Each recursive call returns the height of its subtree, so a parent needs only 1 + max(left height, right height).
Loading visual...
Interview question
Track both extreme products ending at each index because multiplying by a negative swaps which extreme can become largest.
Loading visual...
Interview question
At each index, keep the best sum ending exactly there by either extending the prior range or restarting at the current value.
Loading visual...
Interview question
Before each start, pop every ended meeting; then push the new end and record the largest heap size.
Loading visual...
Interview question
Sorting by start time makes the first overlap appear between adjacent meetings, so Python all can stop at the first failed boundary check.
Loading visual...
Interview question
Sort ranges by start; compare each range with the last merged end, extending on overlap or appending on a gap.
Loading visual...
Interview question
A min-heap containing one current head per nonempty list always exposes the globally smallest unmerged node.
Loading visual...
Interview question
Compare the two frontier nodes, link the smaller after tail, and advance only its source cursor.
Loading visual...
Interview question
Store each value with the minimum for its entire stack prefix, so the top pair always answers get_min().
Loading visual...
Interview question
Advance one start cursor by batch size and yield the half-open slice; sequence slicing automatically clips the final end.
Loading visual...
Interview question
Save valid covers before each left removal. Removing the first essential copy makes the window invalid again.
Loading visual...
Interview question
Initialize with n, then XOR every expected index and actual value so matched numbers cancel and the missing value survives.
Loading visual...
Interview question
Finalize shortest signal times by always popping the cheapest pending path.
Loading visual...
Interview question
Sort by end time; keep a candidate exactly when its start reaches the last kept end.
Loading visual...
Interview question
Each value & (value - 1) update removes one lowest set bit, so the number of loop iterations is the Hamming weight.
Loading visual...
Interview question
Each unseen outer-loop vertex starts exactly one DFS and marks exactly one previously uncounted connected component.
Loading visual...
Interview question
Count each unseen land seed once, then erase its entire four-neighbor component with DFS.
Loading visual...
Interview question
Reverse both flow searches from their ocean borders, move uphill, then intersect the reached cells.
Loading visual...
Interview question
Allocate one batch-width rectangle filled with pad values, then copy each sequence and mark the identical half-open slice as valid.
Loading visual...
Interview question
Broadcast every point-center pair across a feature axis, square coordinate differences, then reduce that axis.
Loading visual...
Interview question
Each accepted radius contributes one range. Equal text at different positions counts separately.
Loading visual...
Interview question
Each number extends a snapshot of previously reachable sums; reaching half the total proves an equal partition.
Loading visual...
Interview question
Slide one width-2 window over "eidbaooo"; add R, remove the outgoing L character, then compare counts.
Loading visual...
Interview question
Fill each path position with every unused index, then pop and clear that same index before the next branch.
Loading visual...
Interview question
At index i, combine the product strictly before i with the product strictly after i.
Loading visual...
Interview question
Accept an edge only when its endpoints have different representative roots; otherwise it closes a cycle.
Loading visual...
Interview question
Maintain a two-node gap so left stops immediately before the second node from the end.
Loading visual...
Interview question
Find the first-half tail, reverse the detached second half, then splice one reversed node after each first-half node.
Loading visual...
Interview question
Preserve the unreversed suffix before redirecting each current.next, then advance the previous/current boundary one node.
Loading visual...
Interview question
Reverse row order, then swap every above-diagonal cell with its reflected below-diagonal partner.
Loading visual...
Interview question
Seed every rotten cell at time zero. FIFO processes nearest-source arrivals. Mark each fresh cell before enqueueing it.
Loading visual...
Interview question
Across exactly 32 iterations, consume input bits from least significant to most significant and append each bit to the growing answer.
Loading visual...
Interview question
Two trees match only if the same-position node pair passes the null, value, left-pair, and right-pair checks.
Loading visual...
Interview question
Keep the interval containing target 0 by identifying one sorted half at each probe.
Loading visual...
Interview question
Preorder records each node and each missing child, so the decoder can consume one token per recursive slot and recover the exact topology.
Loading visual...
Interview question
Read one side of the current rectangle at a time, shrink that boundary, and guard sides that may have disappeared.
Loading visual...
Interview question
Preserve first-row and first-column facts, store interior zero instructions in those borders, then apply markers before restoring the borders.
Loading visual...
Interview question
Binary-search the first feasible capacity because the greedy number of contiguous parts never increases when capacity grows.
Loading visual...
Interview question
Subtract the row maximum, exponentiate nonpositive shifts, and divide by their shared sum.
Loading visual...
Interview question
Count earlier prefix sums equal to current prefix minus target.
Loading visual...
Interview question
Save every current path, then recurse only to larger indices and pop the chosen value on return.
Loading visual...
Interview question
Search each main-tree node as a candidate root, then require equal values and equal left and right topology.
Loading visual...
Interview question
XOR writes sum-without-carry bits while shifted AND carries shared 1 bits into the next pass.
Loading visual...
Interview question
Frequency is a bounded coordinate: place each value at its count, then scan counts from n down until k values are collected.
Loading visual...
Interview question
Use partial partition only to select top-k membership, then sort those candidate indices by their scores for the required descending order.
Loading visual...
Loading visual...
Interview question
Sweep a 3 by 3 grid row by row; each interior count is old ways[col] from above plus new ways[col-1] from the left.
Loading visual...
Interview question
Two strings are anagrams exactly when their character-count maps are equal.
Loading visual...
Interview question
Keep raw text in place, skip non-alphanumeric endpoints one at a time, and move both pointers only after a case-insensitive match.
Loading visual...
Interview question
A closing bracket is valid only when it removes its matching newest unmatched opening bracket.
Loading visual...
Interview question
Validate each node against the complete interval inherited from every ancestor.
Loading visual...
Interview question
Only reachable boundaries may launch dictionary words; each full prefix match adds its ending boundary.
Loading visual...
Interview question
Follow board cells and trie children together, mark the current path in place, emit terminal words once, and prune exhausted trie branches while backtracking.
Loading visual...
Interview question
A recursive path owns its marked cells; failed directions return false, and every accepted cell is restored before that call returns.
Loading visual...
Concept
Compare HBM memory bandwidth traffic between unfused grouped GEMMs and a fused SRAM Triton kernel for MoE feed-forward layers.
Loading visual...