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 .

Правка en1, от 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...!

Теги array

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский rinku11 2021-12-29 14:26:52 721
en1 Английский rinku11 2021-12-29 13:03:59 295 Initial revision (published)