Easy to Understand || Python 3 Solution
class Solution:\n    def distinctDifferenceArray(self, nums: List[int]) -> List[int]:\n        n = len(nums)\n        a = [ ] \n        for i in range(len(nums)
class Solution:\n    def distinctDifferenceArray(self, nums: List[int]) -> List[int]:\n        n = len(nums)\n        a = [ ] \n        for i in range(len(nums)):\n            a.append(len(set(nums[0:i+1]))-len(set(nums[i+1:n])))\n        return a\n
['Python3']