is it necessary to write constraints in every problem like N>0 andN<100000000 .or how could we make sure that code dont run out of the following constraint.
Constraint doubt
hello @lovely
yeah constraints are necessary ,this given us idea about expected time complexity ,space complxity
checker will run ur code without violating any mentioned constraint ( u dont have to anything for it ,it will be taken care).
so u mean we dont have to mention the constraints but write code according to it?
yeah…(why u will mention? it will be already mentioned in problems)
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.