Тёмный
No video :(

Python HackerRank Solutions: Words Score 

nexTRIE
Подписаться 6 тыс.
Просмотров 495
50% 1

Python HackerRank solution for the coding challenge "Words Score".
HackerRank Python solutions on GitHub: github.com/Isa...

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

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@francois-xaviermenage4531
@francois-xaviermenage4531 5 месяцев назад
How do you compute the fair amount of loops required?
@nextrie
@nextrie 5 месяцев назад
You have to iterate through each letter of every word in the list of words. That's why it's a nested loop.
@francois-xaviermenage4531
@francois-xaviermenage4531 5 месяцев назад
Ok but sometimes , we use loops easily and I have already been reproched to use too many loops..I am wondering how measuring better when I am asked to optimize..​@@nextrie
@nextrie
@nextrie 5 месяцев назад
@@francois-xaviermenage4531 Well, it depends on the nature of the problem. If you can use a data structure like a Trie to process words faster and reduce time complexity, then that's great. But in this debugging problem, the instructions expect you to go through each letter (inner loop) of each word provided (outer loop). So, it's okay to go with a nested loop here. Plus, it's only a small problem, so the input size won't cause any issue.
@kewyj
@kewyj Год назад
Hello, I don't know if you remember me, but I used to refer to your C++ hackerrank solutions before I started uni. Your insightful videos and replies helped me out so much, and I would say I'm doing pretty well because of it! Thank you for all your videos!
@nextrie
@nextrie Год назад
That means so much to me. Helping others and making education easier for them is definitely one of my main goals. I'm glad my content helped you in your courses. Which year are you in, in your studies? Have you graduated already?
Далее
Python HackerRank Solutions: Division
3:01
skibidi toilet zombie universe 40 ( New Virus)
03:06
Просмотров 1,9 млн
Time Delta | HackerRank | Python Programming | Coding
19:15
How This New Battery is Changing the Game
12:07
Просмотров 198 тыс.
Python HackerRank Solutions: Capitalize!
7:52