@ anonymous here u see the formula where it is clearly mention for single step the value of k is not changing
so we can solve this question by taking single dimensional array instead of two dimensional array and in 1D array we have large size to store value for DP as compare to 2D array -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
