How to find the larger elements to the left of every element in a given array?

Revision en1, by silentknight00, 2018-06-24 21:22:16

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English silentknight00 2018-06-24 21:22:16 186 Initial revision (published)