Programming Challenge 2 asked in Amazon SDE(Software Development Engineering) | coding2 |

preview_player
Показать описание
Amazon SDE:
Coding Challenge 2:

Question 2:
Sub-strings and Distinct characters
Input:
3
abc
Output:
[6 3 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]

#amazonjobs
#amazonsde
#coding2
#hakerrank
Рекомендации по теме
Комментарии
Автор

For S = abc, i = 1 sub-string having 1 - distinct character, the substrings are [ a, b, c, ab, bc, ca, abc ]. Totally 7 isn't it?

EshsUrbanPulseYT
Автор

what was the complexity we were supposed to do in??

akashrai
visit shbcf.ru