Tapan Rachchhtapanrachchh.hashnode.dev·May 23, 20242597. The Number of Beautiful SubsetsApproch 1 : Using Array class Solution: def beautifulSubsets(self, nums: List[int], k: int) -> int: ans = 0 def checkBeauty(arr, num): for e in arr: if abs(e - num) == k: return Fal...PythonAdd a thoughtful commentNo comments yetBe the first to start the conversation.