Watch others solve Sorting interview questions, see how they did, and learn from their mistakes.
Get step-by-step instructions on how to approach and solve common technical interview questions.
You are given a list of lexicographically sorted words from an alien language. This language has a unique order. Return the alphabetical order of all the letters found in the list of words.
Given n non-negative integers, find two lines that form a container that can hold the most amount of water.
Given an integer array and an integer k, return the kth smallest element in the array.
Given an unsorted array of integers and an integer k, find the number of subarrays whose sum equals k.
Given an array of integers, return an array of triplets such that i != j != k and nums[i] + nums[j] + nums[k] = 0.
Given an input string `s`, reverse the order of the words without reversing the words themselves.
Given a two-dimensional binary matrix where 1 represents water and 0 represents land, mutate the matrix in place and return the matrix with the highest peak maximized.
Given an integer array nums and an integer k, return true if it is possible to divide this array into k non-empty subsets whose sums are all equal.
Given a list of integers L and a number K, write a function that reorganizes L into three partitions: elements less than K, elements equal to K, and elements greater than K. No additional lists may be used.
Given a 2D matrix, where "1" represents land and "0" represents water, count how many islands are present.
Interview prep and job hunting are chaos and pain. We can help. Really.