need hints ,what to store in node
Cant solve very frustrating
You can just store integer in 1 node as the result needs to be mod 10^9 + 7.
You can check this code for reference. https://ide.codingblocks.com/s/116618
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.