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 1–7
Given an expression "num1+num2", insert a '(' somewhere to the left of '+' and a ')' to the right to minimize the evaluated result —…
Companies: eBay, Meta
Enumeration · String
Last reported Jun 2026
Find the length of the longest contiguous "mountain" subarray — a strictly increasing sequence immediately followed by a strictly decreasing sequence with length ≥ 3…
Companies: Oracle, TikTok
Array · Dynamic Programming · Enumeration · Two Pointers
Last reported Nov 2025
Count how many ways a given n (1 ≤ n ≤ 10^9) can be written as a sum of consecutive positive integers. The core challenge…
Companies: Meta, Microsoft
Enumeration · Math
Last reported Oct 2025
Companies: Atlassian
Array · Combinatorics · Enumeration · Hash Table
Given an array of positive integers (bag counts), remove beans (only deletions allowed) so that every non-empty bag has the same count, minimizing total beans…
Companies: D. E. Shaw
Array · Enumeration · Greedy · Prefix Sum
Find all integers whose digits are consecutive increasing digits (each digit = previous + 1) and return the sorted list of those within the inclusive…
Companies: Zoho
Enumeration
Given a 1-indexed integer array nums of length n, compute the sum of squares of all elements at indices i that divide n (i.e., n…
Companies: Bloomberg
Array · Enumeration