👩💻 Join our community of thousands of amazing developers!

2936. Number of Equal Numbers Blocks You are given a 0-indexed array of integers, nums. The following property holds for nums: All occurrences of a value are adjacent. In other words, if there are two indices i < j such that nums[i] == nums[j], then for every index k that i < k < j, nums[k] == nums[i]. Since nums is a very large array, you are given an instance of the class BigArray which has the following functions: int at(long long index): Returns the value of nums[i]. void size(): Returns...