LearnAlgorithmsGreedy vs DPGreedy vs DPPublished on August 17, 2023 Greedy Keys Have a optimal solutio in every step. It’s not necessary the optimal solution though. Each step DP Steps: 1.Last updated on December 17, 2023Dynamic ProgrammingMajority Element: Boyer–Moore majority vote