• Skip to primary navigation
  • Skip to content
  • Skip to footer
junyeong-nero's workspace
  • Problem Solving

    junyeong-nero

    UNIST, CSE 3th

    • Ulsan, Korea
    • Email
    • GitHub
    • Instagram

    23.04.05 Today’s Leetcode

    less than 1 minute read

    2439. Minimize Maximum of Array (medium)

    class Solution:
        def minimizeArrayValue(self, nums: List[int]) -> int:
            res = -1
            temp, count = 0, 0
            for i in range(len(nums)):
                temp += nums[i]
                count += 1
                res = max(res, math.ceil(temp / count))
            return res
    

    Tags: leetcode

    Categories: leetcode

    Updated: April 5, 2023

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    23.10.30 Today’s Leetcode

    less than 1 minute read

    1356. Sort Integers by The Number of 1 Bits

    23.10.29 Today’s Leetcode

    less than 1 minute read

    ##

    23.10.28 Today’s Leetcode

    less than 1 minute read

    5. Longest Palindromic Substring (medium)

    23.10.27 Today’s Leetcode

    less than 1 minute read

    823. Binary Trees With Factors

    • Follow:
    • Feed
    © 2024 junyeong-nero. Powered by Jekyll & Minimal Mistakes.