Have done this with int to string conversion

any other method to do this ???

Hey @Shubham800 see this,
image

Moreover if you still find it difficult, here’s the code For the same https://ide.codingblocks.com/s/330610,

why we have not returned X>Y rather than X+Y>Y+X???

i mean to say if i sort the array lexicographically then i should also get the maximum no. !!!

try to do it with test case
1
2
42 4
Expected should be 442
Your logic will give 424
Try to think about this.

ohk got the point ,thnk u

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.

https://ide.codingblocks.com/s/417219 this my code for divisible subarray ques and i am tired of asking to debug this code there at that ques but no response , pls check my code i have tried all test cases one by one they are giving right ans but at submission they showed 1 failed cases i have applied same logic as prateek bhaiya but in diff way

hello @Shubham800

pls raise the doubt, from that question in which u have doubt.
will try to resolve asap

Since you have revoked your doubt, and have also mentioned the question. Your doubt will be solved here only. Don’t worry :slight_smile: assigned ta will respond.

@Shubham800 i m ur assigned TA
pls do as suggested here. . .

asking to do so becuase i want problem id and contest id , to find that question over hackerblocks

hey i have got the problem link.
pls wait . . .

check ur updated code ->https://ide.codingblocks.com/s/417227

next time onwards, pls raise doubt from the same question in which u have doubt to save TA’s and urs time

thnks a lot and sorry for that actually i have asked doubt at that ques a lot of time but assigned TA abha agrawal have not replied or if replied did not clear my doubt , thnks lot

so basically sum was overflowing for large test cases ,was this only problem with my code ???

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.

image

this one also