Today I read someone’s testimony, and it taught me something important.
Every situation in life whether it comes from our mistakes, pain, happiness, or struggles carries a lesson.
Sometimes we understand it immediately, and sometimes it takes time.
But one thing I realized is this:
Every condition we go through in life teaches us something.
Every situation in life whether it comes from our mistakes, pain, happiness, or struggles carries a lesson.
Sometimes we understand it immediately, and sometimes it takes time.
But one thing I realized is this:
Every condition we go through in life teaches us something.
🔥8
Sometimes I see people younger than me doing amazing things and it really makes me think.
This guy is only 16 years old, building startups, creating content, and growing in tech communities like A2SV. 👏
Meanwhile, when I was 16 😂 I was busy watching cartoons and hearing
“If you don’t study mathematics, you will fail your exams.”
Many of us grew up thinking only about passing exams, but some people start building skills and chasing bigger dreams very early. Family support also has a big role in this.
The crazy thing is, I knew about A2SV only two years ago, but he already knew it at 16. That’s inspiring for real.
Respect to him for starting early, learning continuously, and building while still young.
This guy is only 16 years old, building startups, creating content, and growing in tech communities like A2SV. 👏
Meanwhile, when I was 16 😂 I was busy watching cartoons and hearing
Many of us grew up thinking only about passing exams, but some people start building skills and chasing bigger dreams very early. Family support also has a big role in this.
The crazy thing is, I knew about A2SV only two years ago, but he already knew it at 16. That’s inspiring for real.
Respect to him for starting early, learning continuously, and building while still young.
🔥9❤3
Forwarded from Code & Coffee (loza)
OK the feminine side of me made me write this
I remember when my mom’s friend say when I tell her I wanna study for my master’s , “ትምርት አታብዢ ባል አታገኚም.”
I though this is ያረጀ ያፈጀ አስተሳሰብ
but nah… some people still get uncomfortable when a woman is confident, independent, expressive, successful, or visible.
Like suddenly being smart, making money, speaking your mind, and handling your own problems makes you “not wife material”
Some people really want women to stay quiet, dependent, less ambitious, less outspoken… basically easy to control
But when a woman breaks that mold, builds her own life, makes her own money, speaks confidently, and stands on her own feet, they call it “too much” instead of calling it strength.
And honestly? Being independent doesn’t make a woman less feminine or harder to love it just means she can survive with or without help. That should be respected, not feared.
So my girlies pls don’t shrink yourself to fit somebody else’s comfort zone. Study, get the degree, get the money, be soft, be feminine, be confident, be YOU.
Anyway this is not personal just something I felt after observing some stuff today. If you’re offended… idk ma guy
I remember when my mom’s friend say when I tell her I wanna study for my master’s , “ትምርት አታብዢ ባል አታገኚም.”
I though this is ያረጀ ያፈጀ አስተሳሰብ
but nah… some people still get uncomfortable when a woman is confident, independent, expressive, successful, or visible.
Like suddenly being smart, making money, speaking your mind, and handling your own problems makes you “not wife material”
Some people really want women to stay quiet, dependent, less ambitious, less outspoken… basically easy to control
But when a woman breaks that mold, builds her own life, makes her own money, speaks confidently, and stands on her own feet, they call it “too much” instead of calling it strength.
And honestly? Being independent doesn’t make a woman less feminine or harder to love it just means she can survive with or without help. That should be respected, not feared.
So my girlies pls don’t shrink yourself to fit somebody else’s comfort zone. Study, get the degree, get the money, be soft, be feminine, be confident, be YOU.
Anyway this is not personal just something I felt after observing some stuff today. If you’re offended… idk ma guy
🔥6❤1
Hey guys 👋
Do you like reading fiction or books in general?
What types of books do you enjoy most, and what do you usually expect when you pick up a new book entertainment, knowledge, motivation, or something else?
Do you like reading fiction or books in general?
What types of books do you enjoy most, and what do you usually expect when you pick up a new book entertainment, knowledge, motivation, or something else?
✍3👍1
Eid Mubarak ma people ❤️
Wishing all my Muslim friends peace, happiness, and countless blessings on this beautiful day 🌙🤍
May your prayers be accepted and your hearts be filled with joy
Wishing all my Muslim friends peace, happiness, and countless blessings on this beautiful day 🌙🤍
May your prayers be accepted and your hearts be filled with joy
⚡4❤2
This summer, I’m continuing my Competitive Programming journey with more consistency and focus
I’ll be sharing:
• My LeetCode progress
• Codeforce problems & contests
• DSA concepts I learn
• Struggles, mistakes, and improvements along the way
The goal is simple improve step by step and become a better problem solver every day 💻
If you’re also learning CP or DSA, feel free to join the journey.
I’ll be sharing:
• My LeetCode progress
• Codeforce problems & contests
• DSA concepts I learn
• Struggles, mistakes, and improvements along the way
The goal is simple improve step by step and become a better problem solver every day 💻
If you’re also learning CP or DSA, feel free to join the journey.
❤6👍1
Grokking_Algorithms.pdf
6.2 MB
This book is good start as beginner read and understand one algorithm or data structure then do easy then medium then hard problems from leetcode or codeforce
🔥6
👉Two Sum Problem
I traverse the array one by one and for each element I calculate the complement (target − current value). I store the values I have seen in a dictionary and check if the complement already exists.
If it exists, it means those two numbers add up to the target.
My main confusion was not the logic, but the return part the problem asks for indices, not the actual values.
I traverse the array one by one and for each element I calculate the complement (target − current value). I store the values I have seen in a dictionary and check if the complement already exists.
If it exists, it means those two numbers add up to the target.
My main confusion was not the logic, but the return part the problem asks for indices, not the actual values.
👏4
If you want to start learning DSA from the beginning, I recommend this NeetCode course. It explains the basics step by step and is good for beginners in competitive programming and problem solving
❤6
Contains Duplicate using a simple idea of storing seen values in a dictionary while traversing the array.
For each number, I check if I have already seen it. If yes, I return True because a duplicate exists. If not, I store it and continue. If the loop finishes without finding any repeated value, I return False.
My main mistake was in the logic flow I was returning False too early inside the loop, and I also forgot that I should check the actual values, not just the indices.
For each number, I check if I have already seen it. If yes, I return True because a duplicate exists. If not, I store it and continue. If the loop finishes without finding any repeated value, I return False.
My main mistake was in the logic flow I was returning False too early inside the loop, and I also forgot that I should check the actual values, not just the indices.
❤3
Valid Anagram using two different approaches.
First, I compared both strings by sorting them and checking if the sorted versions are equal. If they match, it means both strings contain the same characters in the same frequency.
In the second approach, I first checked if the lengths are equal. If they are not equal, I immediately return False. Otherwise, I compare the sorted strings.
My understanding is that both solutions are correct, but adding the length check helps avoid unnecessary work when the strings are clearly not anagrams.
First, I compared both strings by sorting them and checking if the sorted versions are equal. If they match, it means both strings contain the same characters in the same frequency.
In the second approach, I first checked if the lengths are equal. If they are not equal, I immediately return False. Otherwise, I compare the sorted strings.
My understanding is that both solutions are correct, but adding the length check helps avoid unnecessary work when the strings are clearly not anagrams.
❤3
Group Anagrams
I used a dictionary and grouped words by sorting each word to create a key. Words with the same sorted key are grouped together.
My main mistake was not realizing early that the sorted word should be used as the key, and I was a bit confused about converting the sorted list into a string and building the groups correctly.
Finally, I understood that anagrams become identical after sorting, so we can group them using that idea.
I used a dictionary and grouped words by sorting each word to create a key. Words with the same sorted key are grouped together.
My main mistake was not realizing early that the sorted word should be used as the key, and I was a bit confused about converting the sorted list into a string and building the groups correctly.
Finally, I understood that anagrams become identical after sorting, so we can group them using that idea.
❤4
Today feels like April Fool’s Day 😭
What is happening with our teacher?
That OOP exam was something else. I don’t even know what to say about the result it really wasn’t me 💔
What is happening with our teacher?
That OOP exam was something else. I don’t even know what to say about the result it really wasn’t me 💔
😭6
Good morning guys ☀️
I have a question for you all 👀
Do you learn for yourself, your future, and your dreams or mainly to make your family happy and proud?
Tell me your thoughts 👇
I have a question for you all 👀
Do you learn for yourself, your future, and your dreams or mainly to make your family happy and proud?
Tell me your thoughts 👇
🤷♂3👀1
Top K Frequent Elements
I used a dictionary to count how many times each number appears in the array. Then I sorted the frequency pairs in descending order and selected the top k frequent elements.
My main confusion was understanding how to sort the dictionary using the frequency values instead of the keys, especially the part with
I also needed time to fully understand how result.items() becomes (number, result) pairs during sorting.
This problem helped me better understand frequency maps and Top K patterns in problem solving.
I used a dictionary to count how many times each number appears in the array. Then I sorted the frequency pairs in descending order and selected the top k frequent elements.
My main confusion was understanding how to sort the dictionary using the frequency values instead of the keys, especially the part with
lambda x: x[1]
I also needed time to fully understand how result.items() becomes (number, result) pairs during sorting.
This problem helped me better understand frequency maps and Top K patterns in problem solving.
❤3
Valid Palindrome
The idea is to first normalize the string by converting it to lowercase and removing all non-alphanumeric characters, then check if it reads the same forward and backward.
My main mistake was not clearly understanding how to properly clean the string, especially removing symbols and spaces. I also initially overcomplicated it using unnecessary loops.
In the end, I learned that the most important step is preprocessing the string correctly before doing the palindrome check.
The idea is to first normalize the string by converting it to lowercase and removing all non-alphanumeric characters, then check if it reads the same forward and backward.
My main mistake was not clearly understanding how to properly clean the string, especially removing symbols and spaces. I also initially overcomplicated it using unnecessary loops.
In the end, I learned that the most important step is preprocessing the string correctly before doing the palindrome check.
❤5