Two Sum and Its Variants
Problem Statement Given an array of integers nums and an integer target, return indices of the two …
Continue ReadingProblem Statement Given an array of integers nums and an integer target, return indices of the two …
Continue ReadingProblem Statement Given a singly linked list, return a random node’s value from the linked …
Continue ReadingSingle Number Given a non-empty array of integers nums, every element appears twice except for one. …
Continue ReadingProblem Statement How do we find all the prime factors of a given number? For example, when n = 12, …
Continue ReadingProblem Statement How do we find all the prime numbers up to a given number? For example, when n = …
Continue ReadingMany interviewers intentionally ask the question in an ambiguous fashion to invite clarification …
Continue Reading