Indeed Interview Questions
Showing 7 questions
You are given an array of integers and a series of update queries. For each query, update a value in the array and then calculate the sum of all the even numbers.
#1. Sum of Even Numbers After Queries
You are given a list of match results. Determine which players have lost zero games and which players have lost only one game.
#2. Find Players With Zero or One Losses
Calculate the tilt of each node in a binary tree, where the tilt is the absolute difference between the sum of left subtree node values and the sum of right subtree node values. Return the total tilt of the entire tree.
#3. Binary Tree Tilt
Given an array of numbers, find the minimum cost to split it into one or more subarrays. The cost of a split is a fixed value plus the sum of lengths of all subarrays that are not "important".
#4. Minimum Cost to Split an Array
Find the minimum number of moves required to make all elements in an array equal, where a move consists of incrementing n - 1 elements by 1.
#5. Minimum Moves to Equal Array Elements
Determine if every row and every column in a given square matrix contains all the numbers from 1 to n, where n is the size of the matrix. Effectively, check if it's a valid Sudoku (without subgrids).
#6. Check if Every Row and Column Contains All Numbers
You are given k sorted lists. Combine all of their elements into a single sorted list and return it.
#7. Merge k Sorted Lists