Question Bank

Interview Practice Questions

1,600+ practice questions organized by topic, company tag, and difficulty.

1635
questions
16
categories
50
companies

Showing 20 of 1635 questions

MediumCoding & AlgorithmsConstructor

A Bloom filter has a false positive rate. How does it depend on parameters (array size m, number of hash functions k, number of elements n)? How to choose optimal parameters?

bloom filterprobabilityhashing
Practice in bot
MediumCoding & AlgorithmsConstructor

Compare Bloom filter vs hash set. When is Bloom filter preferable? Give real-world examples.

bloom filterhash mapdata structures
Practice in bot
EasyCoding & Algorithms

Given an array of integers and a target value, find two numbers that add up to target and return their indices.

arrayshash-table
Practice in bot
EasyCoding & Algorithms

Given a string containing '(', ')', '{', '}', '[', ']', determine if the input string has valid brackets.

stringsstack
Practice in bot
EasyCoding & Algorithms

Given a sorted and rotated array, find the minimum element in O(log n).

binary-searcharrays
Practice in bot
EasyCoding & Algorithms

Merge two sorted linked lists into one sorted linked list.

linked-listtwo-pointers
Practice in bot
EasyCoding & Algorithms

Find the k-th largest element in an unsorted array.

arrayssortingheap
Practice in bot
MediumCoding & Algorithms

Design and implement an LRU (Least Recently Used) Cache with O(1) get and put.

hash-tablelinked-listdesign
Practice in bot
MediumCoding & Algorithms

Given an array of intervals, merge all overlapping intervals.

arrayssortingintervals
Practice in bot
MediumCoding & Algorithms

Find the diameter of a binary tree (longest path between any two nodes).

treesdfsrecursion
Practice in bot
MediumCoding & Algorithms

Given a 2D grid of '1's and '0's, count the number of islands (connected components of 1s).

graphsbfsdfsmatrix
Practice in bot
MediumCoding & Algorithms

Implement a Trie (prefix tree) with insert, search, and startsWith operations.

treesstringsdesign
Practice in bot
MediumCoding & Algorithms

Find the length of the longest increasing subsequence (LIS) in an array.

dpbinary-search
Practice in bot
MediumCoding & Algorithms

Find the length of the longest substring without repeating characters.

stringshash-tablesliding-window
Practice in bot
MediumCoding & Algorithms

Implement topological sort for a directed graph and detect if it contains a cycle.

graphstopological-sortbfs
Practice in bot
MediumCoding & Algorithms

Split array into k contiguous subarrays minimizing the maximum subarray sum (binary search on answer).

binary-searchgreedy
Practice in bot
MediumCoding & Algorithms

Given an m×n matrix, return all elements in spiral order.

arraysmatrixsimulation
Practice in bot
HardCoding & Algorithms

Design a data structure that supports addNum(num) and findMedian() for a stream of numbers.

heapdesignstreaming
Practice in bot
HardCoding & Algorithms

Find all starting indices of substrings in s that are concatenations of all words in any order (all words same length).

stringshash-tablesliding-window
Practice in bot
HardCoding & Algorithms

Given stock prices and at most k transactions, find the maximum profit.

dparrays
Practice in bot

Prepare for your next interview with Vibe Interview.

Download Vibe Interview
Question Bank — page 73 | Vibe Interview