Problem · Array

Build Maximum Integer from Subarray (Google India)

MediumGooglePHONE SCREEN
See Google hiring insights

The question is to build an integer which is maximum from a subarray of size k. For example, given an array [4, 9, 0, 2] and k = 2, the answer is 92.

Examples
01 · Example 1
nums = [4, 9, 0, 2]
k = 2
return = 92
N/A for now 🥹
Constraints
🍉🍉
More Google problems
drafts saved locally
public int buildMaximumInteger(int[] nums, int k) {
  // write your code here
}
nums[4, 9, 0, 2]
k2
expected92
checking account