Комментарии:
Nice solution...
ОтветитьYou cleared my doubt.:)
ОтветитьVery well explained. Have you pen tablet to create this video?
ОтветитьThis was asked in my Microsoft's group-fly round. Great explanation.
ОтветитьVery well explained!
ОтветитьNice Bro keep Rocking
ОтветитьSo, it's relatively a simple question, we enter a string and a position and we count the number of times the character has occurred before that position
Input
abcadsanasd
9
output
3
explaination- the 9th position(8th in 0 index) is a so for 0-7 a occurs three times
My problem, no matter what i try i always get time exceeded error upon submission.