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
@@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.
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!
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?