[#Script #Coding] Greedy Algorithms Tutorial – Solve Coding Challenges

Greedy Algorithms Tutorial – Solve Coding Challenges

By freeCodeCamp.org
Published: Jun 27, 2022

freeCodeCamp.org Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews and many of the challenges can be solved using a greedy algorithm. A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage.

Course from Tanishq Chaudhary. Check out his channel: https://www.youtube.com/c/TanishqChau…

    Course contents

  • (0:00:00) Greedy introduction
  • (0:04:32) Bulbs
  • (0:12:11) Highest product
  • (0:17:08) Disjoint intervals
  • (0:28:43) Largest permutation
  • (0:38:30) Meeting rooms
  • (0:49:25) Distribute candy
  • (1:03:13) Seats
  • (1:19:13) Assign mice to holes
  • (1:24:19) Majority element
  • (1:35:28) Gas station
  • (1:52:39) End

Proudly powered by WordPress
Creative Commons License
EricBrooks.Com® is licensed under a Creative Commons License.

Disclaimer: The views expressed herein are solely those of Eric Brooks. They do not necessarily reflect those of his employers, friends, contacts, family, or even his pets (though my cat, Puddy, seems to agree with me on many key issues.). In accordance to my terms of use, you hereby acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly with every visit. As the user, you also acknowledge that the author has been legally declared a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not responsible for any of his actions. ALSO, the political views and products advertised on this site may/may not reflect the views of Puddy or myself, so please don't take them as an endorsement. We just need to eat.