in reply to Re^2: Looking for Printing all possible combinations
in thread Looking for Printing all possible combinations

The code given here generates exactly the output you requested. Do you understand recursion?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^3: Looking for Printing all possible combinations

Replies are listed 'Best First'.
Re^4: Looking for Printing all possible combinations
by sarkar (Initiate) on Feb 13, 2015 at 13:31 UTC
    Yes Recursion I understand as a concept. But I am a bit clueless here how to use recursion here?
      It's used here to generate all the possible combinations. The alternate function runs two copies of itself: one with the original char in one position, one with the alternate char. Each copy of the function take the next position and do the same, etc. Did you try running the code on at least a portion of the data?
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ