Arrays, Strings & Hashing Questions
Solve problems involving array manipulation, string operations, and hash tables. Common topics include two-pointer techniques, sliding windows, prefix sums, and hash map usage. Practice problems on LeetCode with difficulty 'easy' to 'medium.' Focus on understanding why these data structures are used and what their trade-offs are.
HardSystem Design
32 practiced
Design a system to detect duplicate or near-duplicate images arriving as a high-volume stream. Discuss hashing strategies (perceptual hash, pHash), indexing, false positives/negatives, storage, and how you would scale to 1M images/day with near-duplicate tolerance.
HardTechnical
39 practiced
Implement Rabin-Karp rolling-hash substring search to find all occurrences of a pattern in a text. Handle hashing, mod arithmetic, wide alphabets, and collision handling. Describe how to choose base and modulus and how to reduce false positives.
HardTechnical
32 practiced
Given an array where every element appears three times except for one element which appears exactly once, find that single element in O(n) time and O(1) extra space. Example: [2,2,3,2] -> 3. Implement using bitwise operations and explain the logic.
MediumTechnical
40 practiced
Design encode and decode functions for a list of strings so that the encoded string can be transmitted and decoded back to the original list unambiguously. Discuss delimiter-escaping and length-prefix strategies and implement a robust solution in any language.
HardTechnical
31 practiced
Given an unsorted array of integers, find the length of the longest sequence of consecutive integers. Achieve expected O(n) time and O(n) space. Example: [100,4,200,1,3,2] -> 4 for sequence [1,2,3,4]. Implement and explain avoidance of repeated work.
Unlock Full Question Bank
Get access to hundreds of Arrays, Strings & Hashing interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.