Search found 2 matches

by milton_iut
Wed Jun 20, 2012 8:58 am
Forum: Volume 120 (12000-12099)
Topic: 12049 - Just Prune The List
Replies: 14
Views: 7190

Re: Why I m getting RE for 12049- Just Prune The List

Got AC. Just needed to decrement the value of M and N by 1 before entering into the while loop.
by milton_iut
Tue Jun 19, 2012 8:41 pm
Forum: Volume 120 (12000-12099)
Topic: 12049 - Just Prune The List
Replies: 14
Views: 7190

Why wrong answer? Can anyone help with critical inputs?

#include<stdio.h>
#define MAXARRAY 10000
int mergesort(long int a[], int low, int high);
int main(){
int N,M,T,i,j,count;
long int first[MAXARRAY],second[MAXARRAY];
scanf("%d",&T);
for(i=0;i<T;i++){
count=0;
scanf("%d %d",&N,&M);
for(j=0;j<N;++j){
scanf("%ld",&first[j]);
}
mergesort(first ...

Go to advanced search