Smashed a massive LeetCode Hard today: Subarrays with K Different Integers. Used the atMost(K) - atMost(K-1) sliding window helper trick to solve it beautifully.
Solved Count Number of Bad Pairs by transforming the equation jβiξ =nums[j]βnums[i] to nums[j]βjξ =nums[i]βi, and using a HashMap to store differences.
Solidified my knowledge of how full-text search engines actually run under the hood with the Inverted Index data structure.