My issue
what’s wrong with my code. Please explain anyone.
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
if(n==2) cout<<"no"<<endl;
else {
cout<<"yes"<<endl;
for(int i=1;i<=n/2;i++)
{
cout<<i<<" ";
}
for(int i=n;i>n/2;i--)
{
cout<<i<<" ";
}
cout<<endl;
}
}
}
Learning course: 1800 to 2000 difficulty problems
Problem Link: Equal LIS Practice Problem in 1800 to 2000 difficulty problems - CodeChef