Solve four coding problems
NebiusSoftware Engineer · Online AssessmentLast updated
This set of problems evaluates algorithmic problem-solving skills focused on array and string manipulation, frequency and multiset reasoning, sliding-window and coverage concepts, and combinatorial counting for palindromability.
The interview included four independent coding problems:
-
Longest all-healthy service streak You are given the daily health-check results for multiple microservices. Each day is considered healthy only if every microservice passed its health check on that day. Find the maximum number of consecutive healthy days.
-
Shortest substring covering all distinct characters You are given a string
s. Find the length of the shortest substring that contains every distinct character that appears anywhere insat least once. -
Minimize remaining product types after deletions You are given a list of product IDs and an integer
m. In one operation, you may delete one occurrence of any product ID. After performing exactlymdeletions, minimize the number of distinct product IDs that remain. Return that minimum number. -
Count string pairs that can form a palindrome You are given an array of strings. Count how many pairs of strings
(i, j)withi < jhave the property that, after combining all characters from both strings and reordering them arbitrarily, the result can form a palindrome.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.