From 24a664cf5fc8c3bceb7321d49336d26c20523846 Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Thu, 5 Jan 2023 23:12:22 -0500 Subject: [PATCH] Create README - LeetHub --- 2469-convert-the-temperature/README.md | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 2469-convert-the-temperature/README.md diff --git a/2469-convert-the-temperature/README.md b/2469-convert-the-temperature/README.md new file mode 100644 index 0000000..214d547 --- /dev/null +++ b/2469-convert-the-temperature/README.md @@ -0,0 +1,35 @@ +
You are given a non-negative floating point number rounded to two decimal places celsius, that denotes the temperature in Celsius.
You should convert Celsius into Kelvin and Fahrenheit and return it as an array ans = [kelvin, fahrenheit].
Return the array ans. Answers within 10-5 of the actual answer will be accepted.
Note that:
+ +Kelvin = Celsius + 273.15Fahrenheit = Celsius * 1.80 + 32.00+
Example 1:
+ +Input: celsius = 36.50 +Output: [309.65000,97.70000] +Explanation: Temperature at 36.50 Celsius converted in Kelvin is 309.65 and converted in Fahrenheit is 97.70. ++ +
Example 2:
+ +Input: celsius = 122.11 +Output: [395.26000,251.79800] +Explanation: Temperature at 122.11 Celsius converted in Kelvin is 395.26 and converted in Fahrenheit is 251.798. ++ +
+
Constraints:
+ +0 <= celsius <= 1000