100+ curated problems from top tech interviews
13 problems found
Set entire row/col to 0 if element is 0...
Find longest consecutive sequence...
Validate sudoku board...
Encode/decode list of strings...
Traverse matrix in spiral order...
Find element appearing > n/2 times...
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each inp...
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n...
Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram is a word or phrase formed by rearranging the letters ...
Given an array of strings strs, group the anagrams together. You can return the answer in any order....
Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct....
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order....
Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. You must w...