Help me in solving CONSPERM problem

My issue

Can anyone explain , how to solve the 4th questions in a contest like i always stuck at 3 and never solved the 4th one

My code

#include <stdio.h>

int main() {


}


Problem Link: Construct Permutation Practice Coding Problem

after each contest you should check the editorial and you should practice problem with similar rating eventually you can do 4th problem

1 Like