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.
- Counting172
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Algorithms & Data Structures · Meet new group sizes while disrupting as few buckets as possible.
Cross-Reference Logs to Flag Spam Numbers
Algorithms & Data Structures · A hash join across two logs — and saying that word out loud.
Algorithms & Data Structures · Parse, validate, count — and pick the right denominator for the failure rate.
Memory-Bounded Ranked Ballot Counter
Algorithms & Data Structures · Millions of ballots, Borda scoring, and memory that stays O(candidates) — the constraint is the question.
Algorithms & Data Structures · Bucket sort when the multiset fits, a size-N heap when it's a stream — say both.
Algorithms & Data Structures · A 26-count key instead of sorting each word — the only decision in the problem.
Algorithms & Data Structures · Observed agreement corrected for the agreement two annotators would reach by chance.
Unique Values Across Two Arrays II
Algorithms & Data Structures · Count every value across both arrays in a Map, then keep the ones counted exactly once.
Count Each Character in First-Seen Order
Algorithms & Data Structures · One counting pass into a Map, emitted in insertion order: AAABBAA becomes 5A2B.
Algorithms & Data Structures · A rank histogram and two booleans name every category — the ace is the only edge case.
Algorithms & Data Structures · Count the pieces, then check who has a line: X leads by one if X won, counts are equal if O won, and both cannot win.
Top K Search Terms, One Vote per User
Algorithms & Data Structures · Dedupe (user, term) pairs before counting, then sort by count with the term as the tie-break.
Algorithms & Data Structures · When nodes within the limit must stay, the only cuts that can be made are the first nodes past it — and each is a separate cut.
Algorithms & Data Structures · Map each name to how many times it appears; the second warm-up of the data-science screen.
Transition Graph From Access Logs
Algorithms & Data Structures · Sort each user's accesses into a path from START to END, count transitions per source, and turn the counts into probabilities.
More Than a Third in a Sorted Array
Algorithms & Data Structures · In a sorted array a value that fills more than a third must cover the index at n/3 or at 2n/3, so two probes and four binary searches replace the scan.
Algorithms & Data Structures · Count pairs of numbers that are digit rotations of each other: give every number a canonical rotation and count equal keys instead of comparing pairs.
Asked on LeetCode
155 questions tagged Counting · all time
- Top K Frequent ElementsmediumArrayHash TableDivide and ConquerSorting+425 companies
- Task SchedulermediumArrayHash TableGreedySorting+216 companies
- Top K Frequent WordsmediumArrayHash TableStringTrie+415 companies
- Reorganize StringmediumHash TableStringGreedySorting+213 companies
- Subarrays with K Different IntegershardArrayHash TableSliding WindowCounting10 companies
- Majority ElementeasyArrayHash TableDivide and ConquerSorting+29 companies
- First Unique Character in a StringeasyHash TableStringQueueCounting9 companies
- Ransom NoteeasyHash TableStringCounting9 companies
- Sort Characters By FrequencymediumHash TableStringSortingHeap (Priority Queue)+28 companies
- Majority Element IImediumArrayHash TableSortingCounting+18 companies
- Minimum Number of Steps to Make Two Strings AnagrammediumHash TableStringCounting7 companies
- Maximum Total Damage With Spell CastingmediumArrayHash TableTwo PointersBinary Search+36 companies
- Longest Palindrome by Concatenating Two Letter WordsmediumArrayHash TableStringGreedy+16 companies
- Construct K Palindrome StringsmediumHash TableStringGreedyCounting6 companies
- Maximum Population YeareasyArrayCountingPrefix Sum6 companies
- Most Common WordeasyArrayHash TableStringCounting5 companies
- Maximum Palindromes After OperationsmediumArrayHash TableStringGreedy+25 companies
- Design Parking SystemeasyDesignSimulationCounting5 companies
- Detect SquaresmediumArrayHash TableDesignCounting+15 companies
- Check if One String Swap Can Make Strings EqualeasyHash TableStringCounting5 companies
- Bulls and CowsmediumHash TableStringCounting5 companies
- Pairs of Songs With Total Durations Divisible by 60mediumArrayHash TableCounting5 companies
- Reordered Power of 2mediumHash TableMathSortingCounting+15 companies
- Find Lucky Integer in an ArrayeasyArrayHash TableCounting5 companies
- Divide Array Into Equal PairseasyArrayHash TableBit ManipulationCounting5 companies
- Sum of Beauty of All SubstringsmediumHash TableStringCounting5 companies
- Number of Good PairseasyArrayHash TableMathCounting5 companies
- Longest Harmonious SubsequenceeasyArrayHash TableSliding WindowSorting+15 companies
- Tuple with Same ProductmediumArrayHash TableCounting5 companies
- Check If Array Pairs Are Divisible by kmediumArrayHash TableCounting5 companies
- Count Servers that CommunicatemediumArrayDepth-First SearchBreadth-First SearchUnion-Find+25 companies
- Determine if Two Strings Are ClosemediumHash TableStringSortingCounting5 companies
- Count Elements With Maximum FrequencyeasyArrayHash TableCounting5 companies
- Find Words That Can Be Formed by CharacterseasyArrayHash TableStringCounting5 companies
- Count Subarrays With Majority Element ImediumArrayHash TableDivide and ConquerSegment Tree+35 companies
- Maximum Number of BalloonseasyHash TableStringCounting5 companies
- Rank Teams by VotesmediumArrayHash TableStringSorting+14 companies
- Largest Combination With Bitwise AND Greater Than ZeromediumArrayHash TableBit ManipulationCounting4 companies
- Threshold Majority QuerieshardArrayHash TableBinary SearchDivide and Conquer+24 companies
- Minimum Operations to Write the Letter Y on a GridmediumArrayHash TableMatrixCounting4 companies
- Split a String in Balanced StringseasyStringGreedyCounting4 companies
- Identify the Largest Outlier in an ArraymediumArrayHash TableCountingEnumeration4 companies
- Count Nice Pairs in an ArraymediumArrayHash TableMathCounting4 companies
- Minimum Increment to Make Array UniquemediumArrayGreedySortingCounting4 companies
- Letter Tile PossibilitiesmediumHash TableStringBacktrackingCounting4 companies
- Sum of Unique ElementseasyArrayHash TableCounting4 companies
- Count Number of Bad PairsmediumArrayHash TableMathCounting4 companies
- Next Greater Numerically Balanced NumbermediumHash TableMathBacktrackingCounting+14 companies
- Largest Color Value in a Directed GraphhardHash TableStringDynamic ProgrammingGraph Theory+44 companies
- Maximum Manhattan Distance After K ChangesmediumHash TableMathStringCounting4 companies
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.