Click here to Skip to main content
15,886,632 members

Comments by Thaksha (Top 2 by date)

Thaksha 11-Sep-17 1:16am View    
Thank for your reply....I already know that recursive call have to have the terminating condition to finish the method. But I have the problem when I put the termination condition then it call again because the recursive function deal with the stack memory.
So I want the combinations without recursion in c#.
When I put the input like A,B,C,D
output have to be like A B C D
A B C
A B D
A C D
B C D
A B
A C
A D
B C
B D
C D
A
B
C
D
So do you have or know any codes for this.
Thaksha 6-Sep-17 6:22am View    
Just I want stop the whole recursive call execution in one specific condition (if statement) means my program not going to call the method again after that condition, and show the result until that state.