553. Optimal Division
553. Optimal Division
Description
Solution
To get the maxium value in the nums
, we can fix the numerator and get minium denominator in the lefted numbers. So just let each number divided by later to generate a minium denominator.
Code
1 | class Solution: |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.