Ning Inc Interview Question
13 Interview Reviews |
Back to all Ning Inc Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Ning Inc:
Describe an algorithm that sorts a list of numbers into alternating order, i.e. a < b > c < d > e....
| Tags: | algorithms See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
4 of 4 people found this helpful
by anonymous:
Then swap each pair, skipping the first entry.
For example, start with:
1,2,3,4,5,6,7,8,9
after swap
1,3,2,5,4,7,6,9,8
thus
1<3>2<5>4<7>6<9>8