Problems
Callback's own problems and the LeetCode questions companies have been asking, in one place — pick a category, then filter by company, frequency, status, difficulty, topic, and language.
- Probability and Statistics11
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Algorithms & Data Structures · One pass and O(k) memory: item i replaces a random slot with probability k/(i+1).
Algorithms & Data Structures · Three guarded divisions — and 0 wherever a denominator is 0.
Weighted Sampling Without Replacement
Algorithms & Data Structures · A-Res: key each item by random()^(1/weight) and keep the k largest keys.
Stratified Sampling with Largest-Remainder Allocation
Algorithms & Data Structures · Floor each proportional share, give leftovers to the largest remainders, sample within each stratum.
Algorithms & Data Structures · Observed agreement corrected for the agreement two annotators would reach by chance.
Algorithms & Data Structures · 1 − C(n − c, k) / C(n, k), computed as a running product so nothing overflows.
Asked on LeetCode
5 questions tagged Probability and Statistics · all time
- New 21 GamemediumMathDynamic ProgrammingSliding WindowProbability and Statistics5 companies
- Implement Rand10() Using Rand7()mediumMathRejection SamplingRandomizedProbability and Statistics4 companies
- Soup ServingsmediumMathDynamic ProgrammingProbability and Statistics3 companies
- Toss Strange CoinsmediumArrayMathDynamic ProgrammingProbability and Statistics1 company
- Statistics from a Large SamplemediumArrayMathProbability and Statistics1 company
Listings only — titles, difficulty, and tags link out to LeetCode. Imported from the leetcode-company-wise-problems snapshot dated 1 June 2025. Frequency is that dataset's own relative score within a company and time range.