memset is used for integer dp array… But for dp storing double values how to initialize them?
lyk here https://ide.codingblocks.com/s/472971
I want to initialize my memo dp to -1
How to fill dp array containing double values
you have to use loop here
internally memset also runs a loop
1 Like
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.