S
S
SanaChinaliyeva_12017-11-10 20:06:52
Arrays
SanaChinaliyeva_1, 2017-11-10 20:06:52

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 question

Ask a Question

731 491 924 answers to any question