C#C
C#2y ago
AyaMaya

Decrease all of arrays by 1, optimization because of Time limit Exeeded

Hi I want a code to reduce all ints in int[] happiness, exept for zeros to stay. I was wondering if it was possible to see if all Items left in the array are zero or if all items left in the array are not greater than zero if that makes sense.
image.png
Was this page helpful?