Count the Number of Good Subarrays

Asked at Uber · Coding & Leetcode-style Questions · Difficulty: Medium

Given an integer array `nums` and an integer `k`, return the number of good subarrays of `nums`.

Loading the problem…