CTRL + FUTURE๐Ÿ”ฅ
236 subscribers
198 photos
5 videos
2 files
86 links
Documenting my journey to becoming a Software Engineer
Python | Web Dev | Problem Solving
From beginner to developer ๐Ÿš€
Download Telegram
แˆ˜แˆแŠซแˆ แˆฐแŠ•แ‰ แ‰ตโค๏ธ
โค9
Roman to Integer
I first used a dictionary to map each Roman symbol to its value, then I traverse the string one by one.

For each character, I get its value and try to build the total answer.

My main confusion was that I was only focusing on the current character. I didnโ€™t realize I also need to compare it with the next character to decide whether to add or subtract.

Now I understand:

If current value < next value โ†’ subtract
Otherwise โ†’ add
โค3๐Ÿ”ฅ2
๐Ÿ™„แˆแˆญแŒซ แŠฅแŠ•แ‹ดแ‰ต แАแ‰ แˆญ ?
๐Ÿ˜6
Idea Your Opinion Needed

Iโ€™m thinking to start a small coding challenge in this channel.

๐Ÿ’ก If someone solves a problem, Iโ€™ll give 50 Birr airtime
โœ”๏ธ No AI allowed
โœ”๏ธ Must explain the solution

Do you think this is a good idea and helpful?

Drop your thoughts ๐Ÿ‘‡
๐Ÿ‘3
Drop your thoughts not reaction๐Ÿ˜ฌ
Integer to Roman

I used a dictionary and looped from largest to smallest value. For each value, I keep adding the symbol while it fits in the number and subtracting it.

My mistake was thinking like a list and trying to index the number instead of using a greedy approach.
๐Ÿ”ฅ4
Forwarded from shego.codes
๐Ÿ’Œ
"God protect me from everyone's and my own stupidity."

#เฑจเงŽโ €
โ €โ € โ €โ € โ €โ € โ €โ € โ €โ € โ €โ € โ €โ €:ยจ ยท.ยท ยจ:
โ €โ € โ €โ € โ €โ € โ €โ € โ €โ € โ €โ € โ €โ € `ยท . ๐™š
๐Ÿ‘€3
Forwarded from Birhan Nega
แŠฅแ‹ตแŒˆแ‰ต แˆฒแˆ˜แŒฃ แŠจแ‰ฃแ‹ต แАแŒˆแˆฉ แ‹จแˆšแˆแˆแŒˆแ‹ focus แАแ‹แข pull request review แˆ›แ‹ตแˆจแŒ แˆ‹แ‹ญ แŒŽแ‰ แ‹ แˆ†แАแŠ• แŠขแˆœแ‹ญแˆ แ‰ถแˆŽ แˆ˜แˆ˜แˆˆแˆต แˆ‹แ‹ญ แˆแŠ•แ‰ธแŒˆแˆญ แŠฅแŠ•แ‰ฝแˆ‹แˆˆแŠ•แข แˆ›แŠ”แŒ…แˆ˜แŠ•แ‰ต แŒ“ แˆฒแˆ แ‹จแŒ€แˆ˜แˆญแАแ‹แŠ• แ‰ถแˆŽ แˆˆแˆ˜แŒจแˆจแˆต แˆตแŠ•แˆฎแŒฅ แ‹จแˆ†แА แАแŒˆแˆญ แ‹ญแˆจแˆณแˆแข

แŠ แˆแŽ แŠ แˆแŽ แˆ˜แ‹ฐแŠ“แ‰ แˆญ แ‹ซแˆตแˆแˆแŒ‹แˆแข แˆ›แ‹ฐแŒ แ‹จแˆแˆˆแŒˆ แˆˆแˆ˜แˆฐแ‰ƒแ‹จแ‰ต แ‹แŒแŒ แˆ˜แˆ†แА แŠ แˆˆแ‰ แ‰ต

แˆ˜แˆแŠซแˆ แ‹จแˆตแˆซ แˆณแˆแŠ•แ‰ต
๐Ÿ‘3
Product of Array Except Self

I learned that instead of multiplying everything each time, we split it into left and right products.

What I understood:

* Left = product of elements before index
* Right = product of elements after index
* Answer = left ร— right


My mistake I first tried brute๐Ÿ˜ญ force instead of thinking in prefix/suffix way

๐Ÿ‘‰ Use left and right products to solve in O(n) time.
โค4
Today I saw enough ๐Ÿ˜ช
One CBE branch network down, another working fine like nothing happened.

Mobile banking broke after update, Play Store app missing, use 889 also not workingโ€ฆ and the final solution was I donโ€™t know.๐Ÿคทโ€โ™‚๏ธ

At that point I chose my health and quietly walked away from the bank ๐Ÿ˜‚๐Ÿƒโ€โ™‚๏ธ
๐Ÿ˜4
๐Ÿ”ฅ4๐Ÿ‘1
Forwarded from Morph & Beyond
Scroll long enough and even LinkedIn has some bangers
๐Ÿ˜2
แŠงแˆจ แŠฅแŠ•แ‰…แˆแ ๐Ÿ˜ญ๐Ÿซด
๐Ÿคทโ€โ™‚2