Блог пользователя baka_

Автор baka_, история, 4 года назад, По-английски

Hi! I'm looking for the best approaches to finding a solution to greedy (let's say 1800+ difficulty) problems. Are there any implementation tricks worth it to know? How can I find the correct solution faster and eventually be able to prove it?

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
22 месяца назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

Many times greedy problems use sorting or priority queue .Also u can try to relate the problems with some standard greedy problems like:- (1) Minimum number of platforms. (2) Meeting Rooms 1 and meeting rooms2 in leetcode (3) Coin change problem (4) Gas station on leetcode or expedi problem on spoj (5) Fractional Knapsack (6) Activity scheduling (7) Merge intervals