Reducing 2D DP to 1D - Space Optimization Techniques in Dynamic Programming | OneNoughtOne