Given an array [1,3,4,2] we should get an array [0,0,0,2]. Can someone suggest a quick method for doing this
How to find the larger elements to the left of every element in a given array?
Given an array [1,3,4,2] we should get an array [0,0,0,2]. Can someone suggest a quick method for doing this
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en1 | silentknight00 | 2018-06-24 21:22:16 | 186 | Initial revision (published) |