check the code i’m getting all test cases failed
Test cases failed
you have not sort the arrays
you also need to sort both the arrays before calculating ans1 and ans2
check the code i’m getting all test cases failed
you have not sort the arrays
you also need to sort both the arrays before calculating ans1 and ans2