My issue
how to read input
My code
#include <stdio.h>
int main(void) {
// your code goes here
int n,j,k;
scanf("%d",&n);
while(n--)
{
scanf("%d",j);
int arr[j];
for(int k=1;k<=j;k++)
{
scanf("%d",&arr[k]);
}
for(int k=1;k<=n;k++)
{
if(arr[k]<arr[k-1])
{
printf("no");
}
}
printf("yes");
}
return 0;
}
Learning course: Arrays using C
Problem Link: CodeChef: Practical coding for everyone