Interview Round DistributionClick any round below to filter
Topics:
Showing 20 of 99 results for ShopCluesPage 1 of 5
Coding
48
Minimum Window Substring
Find the minimum window substring that contains all characters of another string.
Input: s = "a", t = "aa"
Output: "" (Empty String)
Explanation: The target requires two 'a's, but the source string only contains one, making it impossible to form a valid window.
Clone an Undirected Graph
Clone an undirected graph.
Input: adjList = [[]]
Output: [[]]
Explanation: Creates a new, deeply cloned graph containing only one single node with zero connected neighbors.
Minimum Path Sum
Find the minimum path sum from top-left to bottom-right in a grid.
Input: grid = [[1,2,3],[4,5,6]]
Output: 12
Explanation: The optimal path moves along 1 -> 2 -> 3 -> 6, resulting in a minimum accumulated sum of 12.
Unique Combinations that Sum to a Target
Find all unique combinations in an array that sum to a target.
Input: candidates = [2,4,6], target = 6
Output: [[2,2,2], [2,4], [6]]
Explanation: Uses backtracking to find all valid combinations that sum to 6, allowing for explicitly repeated elements.
Alien Dictionary Order
Derive the alien dictionary order from a sorted list of alien words.
Input: words = ["z","x","z"]
Output: "" (Empty String)
Explanation: The letter 'z' cannot come before 'x' and then suddenly after 'x', creating a cycle and making the dictionary invalid.
Implement String Compression
Implement string compression.
Input: chars = ["a","b","b","b","b","b","b","b","b","b","b","b","b"]
Output: ["a","b","1","2"]
Explanation: The letter 'a' appears once (so no number is appended), and 'b' appears 12 times, modifying the array in place to length 4.
Palindromes in Base-10 and Base-k
Return the first n integers that are palindromes in both base-10 and base-k.
Input: n = 2, k = 4
Output: [1, 5]
Explanation: 1 is '1' in base 4, and 5 is '11' in base 4. Both are perfect palindromes in decimal and base 4 simultaneously.
Evaluate a mathematical expression given as a string.
Given a string representing a mathematical expression, evaluate it and return its value. The expression can contain basic arithmetic operators, and integer division should truncate toward zero.
Input: s = "3+5/2"
Output: 5
Explanation: Following the order of operations (PEMDAS), 5…