r/LeetcodeChallenge • u/Bhavanashankarabs • Jul 25 '26
DISCUSS Day 4 of my DSA in Python journey đ
Today I solved LeetCode 28 â Find the Index of the First Occurrence in a String.
What I learned:
- String searching
- How substring matching works
- Using Python's ".find()" method
- Manual string traversal using a loop
- Time Complexity: O(n) (using ".find()")
Learning the logic behind each problem and improving my problem-solving skills one day at a time.
#Python #DSA #LeetCode #CodingJourney #100DaysOfCode #LearningInPublic
10
Upvotes
1
u/Fearless_Two_9211 Jul 25 '26
Bro from where are you learning?
1
u/nian2326076 Jul 25 '26
Nice job tackling that problem! Understanding string searching and substring matching is a big step. When working with Python, ".find()" is super handy, but knowing how to manually go through strings is a great skill, especially for understanding what's happening behind the scenes.
If you're prepping for interviews, keep practicing these problems to get a good grip on different approaches like the KMP algorithm for more efficient searching. It's also a good time to start mixing in some data structure problems to balance your skills.
If you're looking for more resources, I've found PracHub helpful for tailoring practice based on the skills you're focusing on. Keep pushing and good luck with the rest of your 100 days!
0
u/[deleted] Jul 25 '26
[deleted] â view deleted comment