Search
⌘K

Leetcode 2469. Convert the Temperature

Given a non-negative float Celsius value, compute and return its Kelvin and Fahrenheit equivalents using the formulas Kelvin = Celsius + 273.15 and Fahrenheit = Celsius * 1.8 + 32, returning both values in an array (answers accepted within 1e-5). Constraints: 0 ≤ celsius ≤ 1000.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.