maximum subarray
swap nodes in pairs
convert sorted array to binary search tree
unique binary search trees
N queens
N queens II
merge sorted array
sort colors
unique paths
generate parentheses