threeal / leetspace

A dedicated workspace and archive for my LeetCode submissions
https://leetcode.com/threeal
MIT License
1 stars 1 forks source link

Solve Problem 628. Maximum Product of Three Numbers Without Partial Sort #1799

Closed threeal closed 1 week ago

threeal commented 2 weeks ago

This issue suggests modifying the solution to the problem 628. Maximum Product of Three Numbers by solving it without using partial sort. Instead, the minimum and maximum values should be found manually from the given array. This change is proposed to optimize the solution.