what is tthe need of globalmax variable in this function.it will always be changing in each function call.i think the clode will run without using globalmax variable in the same code.
Globalmax varialble
hello divish,
yeah this problem can also be solved without making globalmax.
but then we will have to pass and return some more parameter .
using global variable will make implementation easy and less cumbersome
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.