Accepted Sub Link : codeforces.com/contest/1986/submission/267008490
@pratyushdubey5362
2 ай бұрын
nicely explained brother!!
@bhag7768
2 ай бұрын
#mindblown
@harsh9558
2 ай бұрын
Great soln
@RishabhKumar0094
Ай бұрын
Loved that❤
@formidablechief27
Ай бұрын
Glad😁
@ankitghosh9873
Ай бұрын
Great explanation also explain the Time complexity in details and run one test case while explaining the code from next time
@formidablechief27
Ай бұрын
Okay thank you for your advice !!!!
@pratyushdubey5362
2 ай бұрын
why are we checking num==1 at the end when we have already made it a 2 digit number in the starting?
@formidablechief27
2 ай бұрын
For testcase "01" The two digit number has numerical value = 1 And so we will use multiply operation instead of addition
@formidablechief27
2 ай бұрын
In the sample tests, we have an example "901" For that example, the best solution is keeping "01" as our two digit num but the optimal ans for that will be 9 * 01 not 9 + 1 And hence that check was necessary
Пікірлер: 11