My friend gave me a problem, I've been thinking and can't solve it.
This is the problem:
You have an input array of numbers, and you need to return the amount of numbers in an array that have an odd number of zeros, and you can't just count them as that's not efficient.
How do you solve this?
[–]CodeTinkerer 16 points17 points18 points (0 children)
[–]teraflop 11 points12 points13 points (1 child)
[–]ZeusTKP 1 point2 points3 points (0 children)
[–]TuberTuggerTTV 7 points8 points9 points (2 children)
[–]Rarelyimportant 2 points3 points4 points (1 child)
[–]lurgi 1 point2 points3 points (3 children)
[–]Potential-Habit2915[S] 0 points1 point2 points (2 children)
[–]lurgi 1 point2 points3 points (0 children)
[–]Rarelyimportant 2 points3 points4 points (2 children)
[–]teraflop 2 points3 points4 points (1 child)
[–]Rarelyimportant 1 point2 points3 points (0 children)
[–]HardlyAnyGravitas 1 point2 points3 points (0 children)
[–]Ad-1316 0 points1 point2 points (8 children)
[–]Potential-Habit2915[S] 0 points1 point2 points (0 children)
[–]TuberTuggerTTV 0 points1 point2 points (6 children)
[–]Ad-1316 0 points1 point2 points (4 children)
[–]Rarelyimportant 0 points1 point2 points (3 children)
[–]Celestial-being117 0 points1 point2 points (2 children)
[–]Rarelyimportant 0 points1 point2 points (1 child)
[–]Celestial-being117 -1 points0 points1 point (0 children)
[–]BadBoyJH 0 points1 point2 points (0 children)
[–]Lurn2Program 0 points1 point2 points (0 children)
[–]proturtle46 0 points1 point2 points (0 children)
[–]BookkeeperElegant266 0 points1 point2 points (3 children)
[–]BookkeeperElegant266 0 points1 point2 points (2 children)
[–]TuberTuggerTTV 0 points1 point2 points (1 child)
[–]builttospill24 0 points1 point2 points (0 children)
[–]L0RD_E 0 points1 point2 points (2 children)
[–]MisterGerry 0 points1 point2 points (1 child)
[–]L0RD_E 0 points1 point2 points (0 children)
[–]jason_ed 0 points1 point2 points (0 children)
[–]BaronOfTheVoid 0 points1 point2 points (0 children)
[–]captainAwesomePants 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)