Given a set. Write the pseudo code to get all the subsets
for the given set.

Eg. Input : {1,2}
Output : (),(1),(2),(1,2)


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

where is available in this mantis toturials?

0 Answers  


how pseudo column works?

0 Answers   Oracle,


What is WEB 3.0? What are the features their in WEB3.0

0 Answers  


give idea for creating screen in abap

0 Answers  


Hi, I'm doing B.com 3rd year. Simultaneously I'm doing software engineering in a private institution. I would like to know whether my B.com graduation alone is enough to get me a job in the IT field or should I do some PG course not MBA... suggest me...

1 Answers  






the channel in the data communication model can be? option a.postal mail serv. b telephon lines c.radio signals d. all the above

2 Answers   iNautix, National Investment Commission,


This is a puzzle question .... The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another. "In the prison is a switch room, which contains two light switches labeled A and B, each of which can be in either the 'on' or the 'off' position. I am not telling you their present positions. The switches are not connected to anything. "After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must move one, but only one of the switches. He can't move both but he can't move none either. Then he'll be led back to his cell. "No one else will enter the switch room until I lead the next prisoner there, and he'll be instructed to do the same thing. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. "But, given enough time, everyone will eventually visit the switch room as many times as everyone else. At any time anyone of you may declare to me, 'We have all visited the switch room.' and be 100% sure. "If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will be fed to the alligators." What is the strategy they come up with so that they can be free?

6 Answers  


in IBM PC -AT.WAT AT REFERS TO?

0 Answers   IBM,


What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?

0 Answers  


What is meant by QUEUE?

4 Answers   Mascot,


is try block possible without catch block?

3 Answers  


what is different betweet class and interface in java?

2 Answers   Microsoft, Sun Microsystems,


Categories