Question Bank

Coding & Algorithms interview questions

An algorithm interview requires more than working code: explain why the solution is correct. Start with examples and constraints, then choose a data structure and estimate complexity. Check empty inputs, repeated values and boundary cases.

1635
questions
16
categories
50
companies

Showing 20 of 44 questions

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
HardCoding & Algorithms

Implement a data structure with insert, remove, and getRandom — all in O(1). getRandom returns a uniformly random element.

hash maparrayrandomized
Practice in bot
HardCoding & Algorithms

Given server logs [timestamp, server_id, start/end], find the time interval with maximum concurrent active servers. Handle 10⁸ logs efficiently.

arrayssortingsweep-line
Practice in bot
EasyCoding & AlgorithmsЯндекс

What is the time complexity of this algorithm?

Practice in bot
MediumCoding & Algorithms

Could you write something into the object?

Practice in bot
MediumCoding & AlgorithmsСбер

To clarify why I am asking: have you solved LeetCode problems, at least easy ones?

Practice in bot
MediumCoding & Algorithms

What is your algorithms experience? Have you practiced LeetCode, and do you write in Python?

Practice in bot
MediumCoding & AlgorithmsЦиан

What approaches are available for encoding categorical features?

Practice in bot
MediumCoding & AlgorithmsЦиан

Are there methods that do not depend on already having a trained model?

Practice in bot
MediumCoding & Algorithms

Where does the information encoding take place?

Practice in bot
MediumCoding & Algorithms

Instead of doing everything in a function, computing it, and putting it all into an array?

Practice in bot
MediumCoding & AlgorithmsЦиан

Or do we specifically need to output an array?

Practice in bot
MediumCoding & Algorithms

Under what conditions will line 17, after the loop, execute? Will it execute when we reach the last element?

Practice in bot
MediumCoding & Algorithms

Is the algorithm O(n) because we iterate over every element in the list?

Practice in bot

Prepare for your next interview with Vibe Interview.

Download Vibe Interview
Coding & Algorithms interview questions — page 2 | Vibe Interview