Bivariance... how often do you use bivariance in your typescript?
I saw it many times, but didn't think about how many problems it could potentially bring.
Also, you can check it in our lovely React ;)
#typescript#devNotes#react
57. Insert Interval
When you merge intervals, you can do it with one iteration, when you want to insert one -- take the first items that are not overlapped, add the overlap item, and add the rest.
#cpp#leetcode#wayToBigTech
91. Decode Ways
A recursive solution is good, but remember to use memoization.
However, an iterative solution with accumulation is much more effective.
#cpp#leetcode#enjoyByLearning
73. Set Matrix Zeroes
When you need to make changes "in a place" try to set flags somewhere -> make changes according to the flags -> make changes with elements that contain flags.
#leetcode#wayToBigTech#writeAboutThat
124. Binary Tree Maximum Path Sum
It is an interesting task.
You need to choose and move forward with the most appropriate option.
#cpp#leetcode#enjoyByLearning
202. Happy Number
This problem looks simple, but it teaches 2 powerful patterns:
1. Detect cycles (think fast & slow pointers)
2. Transform numbers -> sum of squares
It's really cool how this simple task can teach you how to use such a great mechanism.
#leetcode#goodToKnow
55. Jump Game
Once you need to make the best possible choice, and it will not make things worse later -- use greedy
#LeetCode#wayToBigTech#bitbytestories
2402. Meeting Rooms III
I finished my first arduous task without any hints or suggestions. It took 3 hours, but I did it. Yeeeeahhh.
#cpp#leetcode#wayToBigTech
The biggest thing this month is here!
A brand new C++ video is out on "Code for Yourself"!
You can tell a lot of hard work went into it. As always, the video is excellent!
https://t.co/nFVqI0DhPv
Thanks for spreading the word about C++!
#cpp
2285. Maximum Total Importance of Roads
This is an enjoyable task that shows how easy a complex solution can seem at first glance.
#cpp#leetcode#wayToBigTech