+ 1
Write a program or algorithm , to print the Permutation of given string taking r at a time. Be commented to explain it.
Suppose , input is "alphabet" , and r is 5, then you have to print , Permutation taking 5 at a time. I can print the permutation taking all at a time ,but for doing this(taking r at a time) , complexity increases too much. Here is my approach :- 1.)Find the all the combination taking r at at a time. 2.)print all the permutation of individual combination taking all at a time. Did anyone has any other approach to this problem??
3 Answers
0
Asking or telling? A simple course should teach you how to do that.
- 1
is java more harder than any other language
- 1
Nope Yogi