Given a linked list and a target, partition the list so that the all integers less than the target is to the left of the target and all the integers equal or greater than the target is to the right of the target.
Target: 5
Input: 2 -> 5 -> 3 -> 9 -> 9 -> 1 -> null Output: 2 -> 3 -> 1 -> 5 -> 9 -> 9 -> null
Time: 1 > log(n) > n > nlog(n) > n^2 > n! > 2^n