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

Need to correct the example test case output written in the down of the NextPermutation problelm. #7537

Closed
KmrAnish04 opened this issue Aug 3, 2021 · 7 comments

Comments

@KmrAnish04
Copy link

KmrAnish04 commented Aug 3, 2021

💥 Proposal

Need to correct the example test case output written in the down of the question file named NextPermutation having path "C-Plus-Plus/cp/NextPermutation.cpp"

(Write your answer here.)
Currently written test case in the file is:
/**
Input :
6
5 3 4 9 7 6
Output :
6
5 3 4 9 7 6
Time Complexity : O(nlogn)
Space Complexity : O(n)
**/

Changes need to be done:
/**
Input :
6
5 3 4 9 7 6
Output :
5 3 6 4 7 9
Time Complexity : O(nlogn)
Space Complexity : O(n)
**/

Explanation:

  1. Test case: According to the algorithm written in the file,
    for the test case:
    6
    5 3 4 9 7 6

    The correct output is:
    5 3 6 4 7 9

  2. Here the space complexity is already correct. No need to change space complexity.

@github-actions
Copy link

github-actions bot commented Aug 3, 2021

Hello @KmrAnish04,
Thank you for opening an issue. 🥳
To get assigned to this particular issue please use /assign
Check this guide before contributing.

@KmrAnish04
Copy link
Author

/assign

@github-actions
Copy link

github-actions bot commented Aug 3, 2021

This issue has been assigned to @KmrAnish04!
It will become unassigned if it isn't closed within 12 days. A maintainer can also add the pinned label to prevent it from being unassigned.

@KmrAnish04 KmrAnish04 changed the title Need to correct the example test case output and space complexity written in the down of the NextPermutation problelm. Need to correct the example test case output written in the down of the NextPermutation problelm. Aug 11, 2021
@Ash-KODES
Copy link

is this issue closed?
there are no PR?

@KmrAnish04
Copy link
Author

here is the PR id = #7539 for this issue. @Ash-KODES

@github-actions
Copy link

@KmrAnish04, this issue hasn't had any activity in 5 days. It will become unassigned in 7 days to make room for someone else to contribute.

@github-actions
Copy link

github-actions bot commented Jun 3, 2022

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!

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

2 participants