Recursive solution to Word Wrap problem

For this question:

https://practice.geeksforgeeks.org/problems/word-wrap1646/1

I have seen the bottom-up solution given on many websites, but I always build DP solution from recursion. Can the TA give me recursive solution to this question?

Hi @girikgarg… pls share ur code whatever u have written…

Sir I don’t have clarity about the code… so it would be better if you could write the recursive code and send

ok… let me see…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.