1.

Code Approach: For this question, you will need to correct the given implementation. We do not expect you to modify theapproach or incorporate any additional library methods.The function/method descending SortArray performs an in-place sorton the given input list which will be sorted in descending order.The function/method descending SortArray accepts two arguments -len, an integer representing the length of the input list and arr, a list ofintegers representing the input list, respectively.The function/method descendingSortArray compiles successfully butfails to get the desired result for some test cases due to logical errors.Your task is to fix the code so that it passes all the test cases.​

Answer»

# PLEASEExplanation:Use a normal language so OTHERS can ALSO UNDERSTAND EASILY.



Discussion

No Comment Found

Related InterviewSolutions