Solo codes
Open in Telegram
Follow along to a coders journey (and memes). Full stack developer | A2sv head of education | GDG technical lead | binge watcher
Show more3 508
Subscribers
-324 hours
+97 days
+1930 days
Posts Archive
3 510
+2
So todays leetcode question was finding the number of games it would take til only one player is if a tournament is taking place and u are given an N
i first tired simulation , just using a loop and dividing it until one person was left then returning count
but then it hit me , if there are n teams , its gonna take n-1 games to determine no matter what , so all i had to return was n-1
one liner lol
Question link
3 510
Today's leetocde problem was easy , but it's worrying me cause when they give a lot of easier ones in a row , it means they'll drop an absolute beast of s question soon 😭😭
This question is a good way of learning the Sliding window algorithm if you're not familiar
Give it a go
Question link
3 510
Finished todays advent of code in class , I think my teacher saw me lmao
But today's was marginally easier than yesterday
3 510
i urge yall to try todays question if youre starting out DSA , it doesnt need any data structure knowledge and just develops your logical thinking and math skills. good starting point
link to problem : https://leetcode.com/problems/minimum-time-visiting-all-points/description/
3 510
+1
but here they are for those who wanna give it a shot
December 1 : https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/?envType=daily-question&envId=2023-12-02
December 2 : https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/?envType=daily-question&envId=2023-12-02
3 510
ps. the reason i havent posted my leetcode solve for yesterday and today is because they have been extra simple like "are these 2 strings the same", i think they felt bad for doing what they did to me on the last day of December.
3 510
+1
just finished my assignment for yenetta code bootcamp this week
twas nothing to complex just recreating the card on the left but without using margin and padding to create element spacing and arrangement
the point of the activity was to master flexboxes and grids i guess
my version is that of the right , i went for a pixel perfect copy but played with the shadow a little to give it that 3d feel
3 510
So apparently there is this thing called advent of code which is a puzzle solving competition that goes on for the month of December starting today
And unlike leetocde and all , you're just given one input and you're supposed to just submit the answer you find for that one input so you don't have to worry about edge cases minamin or time complexity and efficiency 😂😂
And every day there is an easy and a hard version and you only unlock the hard by solving the easy one
I think anyone interested should try it out ,today's problem wasn't so bad
Solved it in a taxi using a mobile IDE omw to class cause I found out about it after I left home
https://adventofcode.com/2023/about
3 510
+2
Finally solved todays question with 1hr and 35 left to midnight , and my perfect month of solving every days challenge question comes to an end with a victory 😄.
i got the medal mom
3 510
So I woke up a bit earlier (11 LT)to solve for the daily leetcode problem since I have a hectic day (classes from 2-11 LT then evening online classes upto Mata 5 LT) and the deadline is midnight
But the question the people at leetcode picked for today is tagged under hard and needs bit manipulation (which I learned to solve for the yesterday's problem )
And dynamic programming (which I learned for the problems of Monday and Tuesday) and now I have to combine those to solve this but dynamic programming isn't Rly a topic you get to comprehend in a day so I have not the slightest clue how to solve it 😂😂😂, so I have to figure it out either my taxi rides or in the 1 hr free I have between 5 and midnight
Ps. The reason today's problem is do important is because I'm doing the monthly challenge of November which is a challenge leetcode has for every month where they pick any problem random Daily and you have to solve it,it might be on topic you dont know and stuff
And if you check your calendar today is November 30 and I've solved all of the previous 29 days so this one question stands between me and my victory in the next 18 hours
The prize for solving every question of the month is a medal/badge next to your profile 😂
Ps fuck you leetocde
3 510
+1
🥸Daily random codeforces solve
i used a recursive function that uses all the moves of the knight on the chess board on all 4 directions to calculate where we would get the most points
link to the problem:
https://codeforces.com/contest/1676/problem/D
link to my submission:
https://codeforces.com/contest/1676/submission/234937357
3 510
🤓Daily leetcode challenge solve
todays was actually quite simple, probably the easiest one this month
it was just counting the number of bits that are on, on given a 32 bit integer
link to the problem:
https://leetcode.com/problems/number-of-1-bits/description/
here is the link to my submission:https://leetcode.com/problems/number-of-1-bits/solutions/4343043/no-functions-used-solution/
3 510
+4
i have a bunch of other web projects but figured i should show variety so imma do my java project next
This is LinkUp , a twitter clone made with only using java Swing and no frameworks that allows you to post,comment follow other people ,the basic social media stuff
i know some of yall might hate in the UI gin trust me java devs know how bad it was making this without a library
you can find the code for it on :
https://github.com/Brooksolomon/LinkUp
3 510
+3
So the first project is a movie streaming platform that also lets you track your watched , i kept forgetting where i stopped on a show i am watching and i cant afford Netflix just for their fancy tracking so i kinda put together a solution that offers both the streaming and the tracking in one place.
for legal reasons i have to state that any and all content found on the website is not hosted on our servers and we just used third party servers we have no affiliations with.
here is a live link if you wanna be a customer 👀👀 , everything is functional but some mobile devices might not be well centered i do apologize.
feel free to comment opinions on improvement's or features i can add
https://the-binger.vercel.app/
