Skip to content

Example: Any combination of string, each character not getting interchanged with other character. Having two fixed any two characters at the first and at the last of the string. Return the number of such combinations. Example: a abd b are fixed in this example. Input: "abcb" Output: 5 Possible combinations: ab(0,1) ab(0,3) acb(0,2,3) abb(0,1,3) …

Notifications You must be signed in to change notification settings

subhosuper/string_fixed_combination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

string_fixed_combination

Any combination of string, each character not getting interchanged with other character. Having two fixed any two characters at the first and at the last of the string. Return the number of such combinations. Example: 'a' and 'b' are fixed in this example. Input: "abcb"
Output: 5
Possible combinations: ab(0,1) ab(0,3) acb(0,2,3) abb(0,1,3) abcb(0,1,2,3)

About

Example: Any combination of string, each character not getting interchanged with other character. Having two fixed any two characters at the first and at the last of the string. Return the number of such combinations. Example: a abd b are fixed in this example. Input: "abcb" Output: 5 Possible combinations: ab(0,1) ab(0,3) acb(0,2,3) abb(0,1,3) …

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages