Answer the question
In order to leave comments, you need to log in
How to bubble sort only positive/negative elements in an array?
I wrote the code for a regular bubble sort, but now the task is different: sort only the negative elements, but the positive ones must remain in their places or vice versa. Any hint would be helpful!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question