Rearrange positive and negative numbers in O(n) time and O(1) extra space in an array and also you have to have to maintain order of appearance of positive and negetive number .

Revision en1, by rinku11, 2021-12-29 13:03:59

I tried various approaches, can't find any logic which satisfies the above constraint. So anyone plz help me out...!

Tags array

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rinku11 2021-12-29 14:26:52 721
en1 English rinku11 2021-12-29 13:03:59 295 Initial revision (published)