Can i sort a particular part of array using sort() function

still wrong answer … i am getting ouput on all kind of inputs and according to me they are correct…but still WA

Try without sort function… then you can get correct Answer…

i am getting same output after entering input given in question and according to me other case outputs are also correct

Please try on your own, and don’t ask in the discuss section. It is obvious that you haven’t either read the question properly or messing with a test case. I am saying this for your benefit only. I have seen people getting plagiarized.

3 Likes

i know i am very close of getting right code am i trying on my own . i truley agree with u.

That’s good,
One more hour of serious coding and I assure that the WA will turn to AC. 100% not kidding.

1 Like

this is the first time someone loves WA…
do you hate ACs or what?

1 Like

after getting multiple WA the value of AC increases but love for WA is doubled

2 Likes