Skip to content
LC-2469 Easy LeetCode

2469. Convert the Temperature

Read the full problem statement on LeetCode.
Difficulty: easy Acceptance: 90% Topics: Math
View full problem on LeetCode

Reading material

Reference solution (spoiler · python)
# Time:  O(1)
# Space: O(1)

# math
class Solution(object):
    def convertTemperature(self, celsius):
        """
        :type celsius: float
        :rtype: List[float]
        """
        return [celsius+273.15, celsius*1.80+32.00]

Solution from kamyu104/LeetCode-Solutions · MIT