Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question 86 #196

Open
Mahi1901 opened this issue Oct 28, 2022 · 4 comments
Open

Question 86 #196

Mahi1901 opened this issue Oct 28, 2022 · 4 comments
Assignees

Comments

@Mahi1901
Copy link
Collaborator

You are given an integer N.

Construct any permutation A of N integers such that the value LCM(1+A1
, 2+A2
,…,N+AN
) is minimized.

A permutation of N integers contains all integers from 1 to N exactly once.

Input Format
First line will contain T, number of test cases. Then the test cases follow.
Each test case contains a single line of input, one integer N.
Output Format
For each test case, output a permutation that minimizes the value LCM(1+A1
, 2+A2
,…,N+AN
).

Constraints
1≤T≤1000
2≤N≤1000
Sample 1:
Input
1
2
Output
2 1

@Shruti-78
Copy link
Contributor

Shruti Koshti
CCOEW
SY Computer
I want to work on this issue.. Can you assign it to me?

@JMukta25
Copy link
Collaborator

We cannot assign this issue to you as you have been already assigned 2 issues.

@aditi3004
Copy link
Contributor

HEY!!!
This is Aditi Sharma(SY-C)
MKSSS's CCOEW
Computer Engineering

I want to work on this issue
Please assign this to me.

@Git-Akshat01
Copy link

Hi! @JMukta25 Can you please assign me this task.
I am Akshat Tiwari of BIT Raipur from Computer Science Engineering Branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants