TADM2E 4.20

From Algorithm Wiki
Jump to: navigation, search

If you partition the array with pivoting 0, all negative values appear before all other positive values. This can be done in linear time, $ O(n) $.