• + 2 comments

    I was surprised by this problem...After I improved my solution from O^3 brute force to O^2, it still gives me timeout for some cases. Then I speed it up by pruning some cases, then there's still one case that's timing out. Finally I found another small place to prune, and it worked...I wonder if this is how every one else do this problem