Pinned Tweet
Hi, I'm Ozoyah (Ozed)
I build websites that look good, get found, convert, & help businesses grow.
Building with Next js,TypeScript …
Obsessed with product design, SEO, marketing, and turning ideas into real products.
Sharing what l build, learn and break along the way.
“Young people don’t like to work anymore cause we think things should come easily for us”
- Enioluwa
Privileged people be giving motivational speech.
3
572
Ozoyah • Software Engineer retweeted
The funny thing about getting better at coding is that the code starts becoming the easy part.
The hard part is learning how to think.
- Breaking problems down.
- Asking better questions.
- Knowing what not to build.
- Reading code you didn’t write.
Still learning. Still building.
“Do so much work that it unreasonable for you not to succeed?
Work so hard that not succeeding makes no sense.
Leetcode day 3.
Today’s problem wanted me to return the median of two arrays sorted in ascending order.
So I was given two different arrays and I need to find the middle value of the two arrays combined together.
I solved this by merging the two arrays using a spread operator then I calculated the media of that array.
#dsa #leetcode
Leetcode day 2.
Today I solved a problem that required me to return the smallest index with the digit sum equal to index.
Let me break jargon, I was like what too when I read it.
So essentially you are given an array of numbers and you have to return the smallest index of the array that is equal to the sum of a digit in that array
I.e number = [1, 10, 11]
Your output should be 1 because the sum of the digits (1 + 0) at index 1 is 1
And in the case that nothing meets that criteria you return -1
I solved it by splitting the digits and suming them, then I checked if that sum was equal to the value of the digits index.
If it is I returned the index else I returned -1

































