Hector Williams
•
Aug 4
•
in Articles
• 1 min read
Greedy algorithms are usually given in leetcode style technical interviews.They involve taking the maximum or minimum.Below is a an example of using the greedy approach to solve a problem.
Problem
Given an integer array nums, reorder it such that n...