I want to get the min partition of the string the ans for the test case taken is 2 , the | quickbrown | fox we need to place 2 bars and break the words such that they exist in wordlist? please can you help with the code

probably im getting 1 more than required ?

hey @talhashamim001 you can take reference from this

ok thanks …

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.