With problem solving comes many approaches. However, just because an algorithm solves a problem, it doesn’t necessarily mean it’s the most “ideal” solution. Generally whenever you’re choosing a solution AKA an algorithm for your problem, you want to consider optimization, whether that’s taking into account how long the algorithm will…