Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DeerForMera |
Let’s say I have an array like [0, 1, 0]
. I want to add 1
into first 0
,
so it will be [1, 1, 0]
. Then if I add again it will be [1, 1, 1]
. How to code this?