Practice Convert the Temperature
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Convert celsius using kelvin = celsius + 273.15 and fahrenheit = celsius * 1.80 + 32.00. Return [kelvin, fahrenheit]. Answers within 10^-5 of the correct values are accepted.
Source: Convert the Temperature on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
celsius = 36.50
Output
[309.65000,97.70000]
# Example 2
Input
celsius = 122.11
Output
[395.26000,251.79800]
Constraints
0 <= celsius <= 1000
Related LeetCode Problems
Practice more problems similar to Convert the Temperature.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.