This Blog is all about Programming, Science & Technology.
#=================================== # Tanzila Islam # Email: tanzilamohita@gmail.com # Language: Python 3 #=================================== class Solution: def hammingWeight(self, n: int) -> int: return bin(n).count('1')
No comments:
Post a Comment