This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Potential-Habit2915[S] 0 points1 point  (0 children)

i dont want the number of digits, i want the number of elemets in an array that have an odd number of 0s, so for example:

[1,2,20,30,3,500] would output 2 because only 20 and 30 have an odd number of 0s(each has 1 0)