/ array & hashing
7 Questions Completed
Make Array Zero By Subtracting Equal Amounts
Encode And Decode Strings
Group Anagrams
Longest Consecutive Sequence
Product Of Array Except Self
Top K Frequent Elements
Valid Sudoku
nums=[1,5,0,3,5]→{1,5,3}→return 3nums =[1,5,0,3,5] \to \{1,5,3\} \to \text{return } 3nums=[1,5,0,3,5]→{1,5,3}→return 3
class Solution: def minimumOperations(self, nums: List[int]) -> int: return len(set([i for i in nums if i > 0]))