Max subarray, n queen, and unique path problems.