#Leetcode

rodmoirodmoi
2025-07-06

1732. Find The Highest Altitude

To find the highest altitude reached by the biker throughout the whole journey, we need to compute the altitude at each step. To solve the problem, we can calculate the sum prefix of the gain array and keep track of the maximum altitude for each step.

rm-o.dev/problems/leetcode-000

rodmoirodmoi
2025-07-06

1657. Determine If Two Strings Are Close

Sometimes the problem definition contains a lot of unnecessary complexity. Therefore, the key to solving these kinds of problems is trying to simplify the problem's definition. Rather than executing the operations outlined in the problem, we should recognize that we can transform them into simpler invariants.

rm-o.dev/problems/leetcode-000

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst