dsa2 min read
Minimum Number of Refueling Stops
Find minimum fuel stops to reach the target by greedily selecting the largest available fuel stations when running low.
Read →
webcoderspeed.com
1276 articles
Find minimum fuel stops to reach the target by greedily selecting the largest available fuel stations when running low.
Design a simplified Twitter with follow/unfollow and a news feed showing the 10 most recent tweets from followed users.
Find the nth number divisible by a, b, or c using binary search with inclusion-exclusion counting formula.
Maximize team performance (sum of speeds * min efficiency) by sorting by efficiency and using a min-heap on speeds.
Build the longest string with at most 2 consecutive identical characters by always using the most frequent available character.