Hey, I'm Kennedy ππ½
I'm a Maths student learning to become a better developer.
Currently learning:
π§ DSA
β‘ JavaScript / TypeScript
π Python
π€ AI
π Web3
I'm documenting everythingβthe bugs, breakthroughs, projects and lessons.
Learning in public
Building in public
Follow along π
One thing I'm starting to understand about DSA:
It's not just about knowing a data structure.
I also need to know how to work through the data efficiently.
Today: arrays + loops. π§ π»
What do you usually use when working with arrays:
Index or value?
#DSA#Python #Programming #100DaysOfCode
Day 11 of my DSA journey π
Today I learned how to iterate through arrays with loops.
At first, "iteration" sounded like another complicated programming word.
But the idea is actually simple:
Go through each element, one at a time.
π§΅π
Then there's `enumerate()`.
It gives you BOTH:
π the index
π the value
at the same time.
This is useful when I need to know both where an element is and what the element contains.
That's a pretty useful Python tool to know. ππ»
Quick DSA challenge π§ π»
Given:
[10, 20, 30, 40, 50]
We delete the element at index 2.
What will the array become?
A) [10, 20, 40, 50]
B) [10, 30, 40, 50]
C) [10, 20, 30, 50]
D) [20, 30, 40, 50]
Drop your answer ππΎ
Bonus: Which elements had to shift?
#DSA#Programming #Coding
What i did today as a java developer:
Today, I worked on modeling student expulsion in my School Model.
I initially thought the Student class should hold a list of students, but I realized that didn't make sense.
Instead:
β’ "School" owns the student