.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

All possible combination of array elements without duplicates

Posted By: Deco     Posted Date: September 21, 2010    Points:2   Category :C#
I have an array like

string[] str = ('1','2','3');

i need to get the result like

Result:

1
2
3
1,2
1,3
2,3
1,2,3

please provide me the c# code. I have listed you the sample
value in an array. My array value will be dynamic.

Responses
Author: Amit Mehra             
Posted Date: January 30, 2011     Points: 5   

Hi,

You can refer this post...the same discussion is going on here

http://www.coderanch.com/t/381411/java/java/All-possible-combinations-elements-string

Thanks,
Amit
Please "Mark As Answer " if this post help you.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend