Click here to Skip to main content
13,730,387 members
Rate this:
Please Sign up or sign in to vote.
See more:
? Sample Input: 6 1 2 3 3 4 5 Sample Output: 6 1 2 3 3 and 4 5 1 3 5 and 2 3 4 1 3 5 and 2 3 4 2 3 4 and 1 3 5 2 3 4 and 1 3 5 4 5 and 1 2 3 3

What I have tried:

I tried iterative but getting one ans only
Posted 14-Jun-18 9:54am
Updated 14-Jun-18 13:59pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I tried iterative but getting one ans only

Show your code and we will help fixing it.
So, you show no attempt to solve the problem yourself, you have no question, you just want us to do your HomeWork.
HomeWork problems are simplified versions of the kind of problems you will have to solve in real life, their purpose is learning and practicing.
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 14 Jun 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100