Mock technical interviews with an AI interviewer.
Every problem leaves something out. Ask about it before you code.
Problems
- Best Day to Buy and SellYou are given the price of a stock on each day, in order. Return the largest profit you could make from one purchase and one sale.EasyArrays & hashingArrays & hashing
- First Odd ValueGiven a list of integers, find the first odd number in it and return that number.EasyArrays & hashingArrays & hashing
- Most Frequent WordGiven a list of words, return the word that appears most often.EasyArrays & hashingArrays & hashing
- Count Subarrays Summing to KGiven a list of integers and a target k, return the number of subarrays whose elements add up to k.MediumArrays & hashingArrays & hashing
- Merge Overlapping IntervalsYou are given a list of intervals, each written as a pair [start, end]. Merge the intervals that overlap and return the result.MediumArrays & hashingArrays & hashing
- Product of All Other ElementsGiven a list of integers, return a list of the same length in which each position holds the product of all the other elements. Do not use division.MediumArrays & hashingArrays & hashing