needed help in understanding problem DBOY

Please explain the formation of 2d result array to compute the answer.since i have only begin with dp please explain in detail.

check out dp at geeksforgeeks.org . For doubts of specific Q, refer here.

1 Like
//