Whats wrong with the dp code(LIS question)
In you top down approach deciding factor is the min element. So, you should take minimum as the state of dp.
In you top down approach deciding factor is the min element. So, you should take minimum as the state of dp.