OKCREDIT Hiring | Online Assessment Question | On-Campus (2022)

Question · Posted Jun 2026

Q1: Minimum Value of the Maximum Integer After K Operations Problem Statement You are given an integer array nums and an integer k. In one operation, you can choose any element and split/reduce it so that the maximum value in the array can be minimized. Your task is to find the minimum possible maximum element after performing at most k operations. Return the minimum achievable maximum value. Example Input nums = [2,11,10,1,3] k = 4 Output 5 Explanation By performing ...

The full answer & interview discussion are available to premium members.

Log in Create a free account