IBM

1 DSA problems asked in IBM coding interviews

0 Easy
1 Medium
0 Hard
​

1 problem

Sliding Window
1
Maximum Sum of Distinct Subarrays With Length K
Medium

You are given an integer array `nums` and an integer `k`. Find the maximum subarray sum of all the subarrays of `nums` that have length `k` and whose elements are all distinct. Return that maximum, or `0` if no subarray meets the conditions.