Skip to content

Conversation

@akash19jain
Copy link
Contributor

No description provided.

Copy link
Collaborator

@christianbender christianbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! I have a request.

}
int main(){
int t;
scanf("%d",&t);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is awkward. Can you write a while condition such that the user can exit the program bei typing -1 ?
Otherwise you can remove the full while-loop, because the problem definition is with your efficient solution solve.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The question mentioned that the First Line contains an Integer T which denotes the Number of test cases. Hence the above lines.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can put in while condition for breaking. For example if the user type -1 the program terminates.

@christianbender christianbender merged commit 924377b into TheAlgorithms:master Feb 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants