Verifone
==============
1.string Permutation
2. decimal to binary format
Siemens
=========
1. Why components and service are registering in app.module.ts
2. javascript vs type script
3. phone number mask (ex: ***-***-1234) using angular
4. Hashset internally implementation
5 . HashMap internals
6. angular 1 vs 2
7. .............
................
NTTData FA
==========
1. Project Architecture
2. why Micro services used
3. DAo class implementation sudo
.............................
public class StringPermutation {
==============
1.string Permutation
2. decimal to binary format
Siemens
=========
1. Why components and service are registering in app.module.ts
2. javascript vs type script
3. phone number mask (ex: ***-***-1234) using angular
4. Hashset internally implementation
5 . HashMap internals
6. angular 1 vs 2
7. .............
................
NTTData FA
==========
1. Project Architecture
2. why Micro services used
3. DAo class implementation sudo
.............................
public class StringPermutation {
public static void permutation(String str) {
permutation("",str);
}
private static void permutation(String prefix, String str) {
int n=str.length();
if(n==0) {
System.out.println(prefix);
}
else {
for(int i=0;i<str.length();i++) {
permutation(prefix+str.charAt(i),str.substring(0, i)+str.substring(i+1,n));
}
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
String s="abc";
StringPermutation.permutation(s);
}
}
Comments
Post a Comment