IBM
1 DSA problems asked in IBM coding interviews
1 problem
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.