Mergesort code submitted but didnt get my score

I submitted my code succesfully but i didnt received score of this program and its not even showing green .Please check it.

Hi @amanchaurasia1833,
I cannot see your code …Can you send a link please.

import java.util.*;
public class Main {
void merge(int arr[], int l, int m, int r)
{
int n1 = m - l + 1;
int n2 = r - m;
int L[] = new int [n1];
int R[] = new int [n2];
for (int i=0; i<n1; ++i)
L[i] = arr[l + i];
for (int j=0; j<n2; ++j)
R[j] = arr[m + 1+ j];
int i = 0, j = 0;
int k = l;
while (i < n1 && j < n2)
{
if (L[i] <= R[j])
{
arr[k] = L[i];
i++;
}
else
{
arr[k] = R[j];
j++;
}
k++;
}
while (i < n1)
{
arr[k] = L[i];
i++;
k++;
}
while (j < n2)
{
arr[k] = R[j];
j++;
k++;
}
}
void sort(int arr[], int l, int r)
{
if (l < r)
{
int m = (l+r)/2;
sort(arr, l, m);
sort(arr , m+1, r);
merge(arr, l, m, r);
}
}
static void printArray(int arr[])
{
int n = arr.length;
for (int i=0; i<n; ++i)
System.out.print(arr[i] + " ");
System.out.println();
}
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int[] arr=new int[n];
for(int i=0;i<n;i++){
arr[i]=scn.nextInt();
}
Main ob = new Main();
ob.sort(arr, 0, arr.length-1);
printArray(arr);
}
}

It is correct code try submitting again … Code will work fine…

i submitted it twice

I too submitted your exact code and it gave me correct answer on every case … I hope you waited for some time after submitting. There are 3 test cases and all three worked for me.

If website shows either wrong or correct then everything is ok otherwise it is either coding block servers or it might be that your browser is old or something.

its submitted and all test cases are passed but its not showing green
.

There may be a server error . Please take a screenshot and upload in reply . I will acknowledge the concerned authority.

Hi @amanchaurasia1833,
I have asked about your problem . Please drop a email at [email protected]

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.

nah my doubt is not cleared

I do not handle technical errors. did you drop the mail??.. your answer is correct as i told and all test cases passed .So there is no doubt left if answer is correct .There is a complain from your side which will be handled by [email protected]

what to write in mail

if you can tag any technical person in this just ask him to do.

Yes attach this screenshot and then write your issue that you are not getting any points .

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.