Skip to content

Latest commit

 

History

History

Find-Char-Occurrence

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Find possible all unique occurrence of characters (Strings)

Defination: Find possible all unique occurrence of characters (Strings) from unique character array or string and output string length.

Example - 1:

Input:

  • Provide string having unique characters (Ex: 'ab')
  • Provide output string length (Ex: 2)

Output:

  • Array of all the strings which concludes as possible all unique occurrence of characters
  • (Ex: ['aa', 'bb', 'ab', 'ba'])

Example - 2:

Input:

  • Provide string having unique characters (Ex: 'abc')
  • Provide output string length (Ex: 3)

Output:

  • Array of all the strings which concludes as possible all unique occurrence of characters
  • (Ex: ['aaa', 'aab', 'aac', 'aba', 'abb', 'abc', 'aca', 'acb', 'acc', 'baa', 'bab', 'bac', 'bba', 'bbb', 'bbc', 'bca', 'bcb', 'bcc', 'caa', 'cab', 'cac', 'cba', 'cbb', 'cbc', 'cca', 'ccb', 'ccc'])