3Sum, 4Sum, longest common prefix, maximal rectangle, search for range, unique paths II