Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 301 Bytes

2469.md

File metadata and controls

13 lines (11 loc) · 301 Bytes

2469. Convert the Temperature

Solution 1 (time O(1), space O(1))

class Solution(object):
    def convertTemperature(self, celsius):
        """
        :type celsius: float
        :rtype: List[float]
        """
        return [celsius + 273.15, celsius * 1.8 + 32]