What does this line mean?
Return the ans % 10000003
Explain the term
basically whatever u get as the final ans u have to return ans%10000003.
means ur final ans = ans%10000003
what is wrong with the code?
i am unable to understand ur code, what is wrong with mine?
ok… give me some time… let me figure out errors in ur code
I have made changes in yr code.
its working fine now
if(painter > k) { return false; }
Why can’t i use if painter == k return true?
means u have k painters with u but if u are requiring more than k then it is not possible… hence we return false
like in the cow question
the major issue in my code was just to use long long instead of int right?
u cant simply return painter == k because if the same work can be done with less no of painters also. according we will update our ans
yes… u had not used long long int
hope ur doubt is cleared now
Yes sir, great help, 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.
I am unable to submit my code in the string sort question as no space for submission or IDE is provided