Greedy Algorithms - Minimum Cost to Connect Sticks
Consider two approaches to solve the minimum cost to connect sticks problem:
Approach 1: Brute force trying all merge orders (O(n! * n))
Approach 2: Greedy min-heap based algorithm (O(n log n))
When might the brute force approach be preferable over the greedy min-heap approach?
