Created
August 27, 2022 00:32
-
-
Save fida10/41de6a08d321ef75d64e28ec76f30313 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution: | |
def findNumbers(self, nums: List[int]) -> int: | |
ans = 0; | |
for indivNum in nums: | |
digitsInIndivNum = 0; | |
while (indivNum != 0): | |
indivNum = int(indivNum / 10); | |
digitsInIndivNum += 1; | |
if (digitsInIndivNum % 2 == 0): | |
ans += 1; | |
return ans; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment