Interview questions
Find a company or topic. Read the sources, then practice.
Loading the question library…
Find a company or topic. Read the sources, then practice.
Loading the question library…
Showing 176–200
Companies: Google, LinkedIn
Array · Dynamic Programming · Math · Memoization
Companies: Media.net
Array · Binary Indexed Tree · Binary Search · Prefix Sum
Companies: Meta
Array · Counting · Hash Table · Sliding Window
Companies: Amazon, Bloomberg, Google, Meta +1
Array · Counting · Divide and Conquer · Hash Table
Companies: Amazon, Microsoft
Array · Divide and Conquer · Hash Table · Merge Sort
Companies: Bloomberg
Array · Matrix · Simulation
For each day in an array of daily temperatures, determine how many days you must wait until a warmer temperature appears (or 0 if none)…
Companies: Anduril, Chime, Goldman Sachs
Array · Monotonic Stack · Stack
Companies: Mitsogo
Array · Counting · Hash Table
Implement a fixed-size circular queue (ring buffer) supporting enqueue, dequeue, Front/Rear, isEmpty and isFull operations without using built-in queue types. The core…
Companies: NVIDIA
Array · Design · Linked List · Queue
Companies: Goldman Sachs
Array · Design · Hash Table · Heap (Priority Queue)
Companies: Amazon, Meesho
Array · Binary Search · Design · Prefix Sum
Companies: Infosys
Array · Dynamic Programming · Enumeration · Math
Given a grid of integers (positive heal, negative damage) and moves only right or down, find the minimum positive initial health so the running health…
Companies: Intuit
Array · Dynamic Programming · Matrix
Implement an Encrypter that maps each character to a two-letter code and supports encrypting by replacing characters and decrypting by counting how many dictionary words…
Companies: Duolingo
Array · Design · Hash Table · String
Companies: Amazon
Array · Brainteaser · Game Theory · Math
Find all integers that occur exactly once in nums and whose immediate neighbors (x-1 and x+1) do not appear in the array; return these "lonely"…
Companies: Apple
Array · Counting · Hash Table
Companies: TCS
Array · Binary Search · Sorting
Companies: Amazon, Samsung
Array · Greedy
Companies: Amazon, Bloomberg, Google, Meta +1
Array · Hash Table · Sorting
Given n people seated in a circle, repeatedly remove every k-th person clockwise until one remains and return their label — the classic Josephus problem…
Companies: Goldman Sachs
Array · Math · Queue · Recursion
Given an array of fruit types where you can pick from a contiguous sequence while carrying at most two distinct types (two baskets), return the…
Companies: Adobe, Amazon, Meta, Salesforce
Array · Hash Table · Sliding Window