best explanation for this question i have watched till now. Thanks to you.
@seniorx91733 жыл бұрын
best sir
@reyou73 жыл бұрын
best explanation ever.
@jaydave25004 жыл бұрын
thanks it was great approach....pls make more videos we are waiting.
@sabalniroula264 жыл бұрын
Best explanation keep it up !!!
@anshumanpandey65264 жыл бұрын
great explanation
@satyamrajsingh73784 жыл бұрын
brilliant explaination
@HimanshuSharma-tm2ms4 жыл бұрын
great explanation.. also ..Pls put the link to the question so that we can solve the question and submit it
@dynamo77314 жыл бұрын
Thank you
@HimanshuSharma-tm2ms4 жыл бұрын
time complexity must be O(nLogn) in the case that we swap the first element and sort from index 1 to n-1
@pranav59514 жыл бұрын
u need not sort as it is in decreasing order, it just needs to be reversed.
@anujkhare38152 жыл бұрын
firstly,we are not sorting,we are reversing the array. Secondly,you can reverse in linear time by maintaing two pointers and swapping them. just google reversing an array using 2 pointers.