Тёмный
No video :(

HackerRank - Repeated String | Full Solution with Simplified Examples and Visuals | Study Algorithms 

Nikhil Lohia
Подписаться 45 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@C__janhaviKadam
@C__janhaviKadam 8 дней назад
crisp and clear ! thankss
@shruthibudidha5508
@shruthibudidha5508 6 дней назад
great and clear explanation sir!!Thank you so much sir Not only this sir,each and every video was awesome and easily understandable
@kumarisuruchisuman8919
@kumarisuruchisuman8919 2 года назад
No one can explain like you ☺
@pradeeps9633
@pradeeps9633 2 года назад
bro you're just amazing👌👌.we want this type of teaching.
@MrMclit
@MrMclit 3 года назад
Great explanations, thank you
@CostaKazistov
@CostaKazistov 2 года назад
Really clear explanation. Definitely helped to understand this interesting HackerRank problem and the optimal solution. Many thanks!!
@georgethesavant5735
@georgethesavant5735 2 года назад
10 out of 10 explanation 🌼️, tysm!
@pratyakshamaheshwari8269
@pratyakshamaheshwari8269 3 года назад
Thank you Sir, you taught it very well.
@TheAxelgr
@TheAxelgr Год назад
I love you man!
@vaitheeswaranr2115
@vaitheeswaranr2115 3 месяца назад
StringLeftLength=n%strLength; Will be helpful?
@rohitsaka
@rohitsaka 3 года назад
Can you Please make it on Stock Span Problem
@nikoo28
@nikoo28 3 года назад
Reach out to me on my email in channel description with the problem link.
@prativa810
@prativa810 Год назад
why is the time complexity O(1)? You have run the two loops in the code
@niharikamurulidhara7017
@niharikamurulidhara7017 2 года назад
Sir....I tried the below code.. #include #include using namespace std; int main() { long long int n,count=0; int length,i; string sub_str; getline(cin,sub_str); cin>>n; length = sub_str.length(); if(length==1) { if(sub_str[i]=='a') { count=n; } else { count=0; } } // finding number of a's in substring else if(length>1) { for(i=0;i
@nikoo28
@nikoo28 2 года назад
Try looking at the test cases I have in my code and debug your code with those cases. Maybe you can catch the problem
@_JAGATHEESANV
@_JAGATHEESANV 11 месяцев назад
Why can't we use this stringLeftLength=n%strLength;
@nikoo28
@nikoo28 10 месяцев назад
you can
@_httpantwon
@_httpantwon Год назад
It still wasn't clear
@nikoo28
@nikoo28 Год назад
Which part did you face a problem at? I can try to elaborate
@k16e
@k16e Год назад
Shouldn't you `Math.floor(n / sLength)` the number of reps?
Далее
Repeated String HackerRank Solution [Optimal Approach]
16:41
He Didn’t Know My Mom is a Chess Grandmaster…
5:55