If you look closely you see that there is a little but important difference in what you both loop over.
hello, yea it's possible, I just have made it
My code is only 4 lines long lol
This is irrelevant.
Yes, it is possible, and you have to think of some more efficient way. Hint: if there is 100 ones and a single zero, your method checks that there is 100 ones a hundred times. It is enough to check that there is 100 ones only once.
Loading collection data...
If you look closely you see that there is a little but important difference in what you both loop over.
hello, yea it's possible, I just have made it
This is irrelevant.
Yes, it is possible, and you have to think of some more efficient way. Hint: if there is 100 ones and a single zero, your method checks that there is 100 ones a hundred times. It is enough to check that there is 100 ones only once.