finding all permutation of words in a sentence.
- by Nikhil K
how can i get all permutation of words in a sentence.can you give a sample c# code for that?
eg: if the sentence is "C# not java",
the output should be, 1)c# not java 2)c# java not 3)java not c# 4)java c# not 5)not java c# 6)not c# java etc.