thx alot
How silly my mistake was!! :( ...
On Thu, Jul 26, 2012 at 11:16 PM, payal gupta gpt.pa...@gmail.com wrote:
perhaps its this quoted line...
permu(c,i+1,j); permu(c,i+1,n)
On Thu, Jul 26, 2012 at 9:37 PM, teja bala pawanjalsa.t...@gmail.comwrote:
// plz anyone tell
// plz anyone tell me whats wrong in this code
//o/p should print all possible permutations of string.
class swap
{
char ab[]={'a','b','c'};
public static void main(String[] args)
{
swap c=new swap();
permu(c.ab,0,3);
}
public static void permu(char c[],int i,int n)
{
perhaps its this quoted line...
permu(c,i+1,j); permu(c,i+1,n)
On Thu, Jul 26, 2012 at 9:37 PM, teja bala pawanjalsa.t...@gmail.comwrote:
// plz anyone tell me whats wrong in this code
//o/p should print all possible permutations of string.
class swap
{
char