Advertisement
rotti321

sortare neuniforma

Feb 11th, 2022
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. Avem un sir de max 100000 de numere din intervalul [1,100].
  2. Sa se sorteze crescator acest sir, cu conditia ca doua valori alaturate sa nu fie egale.
  3.  
  4. Ex:
  5. 10
  6. 2 4 3 5 4 3 2 4 4 4
  7. Rez:
  8. 2 4 2 4 3 4 3 4 5 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement