We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18deae commit 2bd4268Copy full SHA for 2bd4268
README.md
@@ -45,6 +45,8 @@ Step 2. Add the dependency
45
46
<summary>展开查看</summary>
47
48
+https://leetcode.cn/problems/convert-the-temperature
49
+
50
https://leetcode.cn/problems/split-message-based-on-limit
51
52
https://leetcode.cn/problems/count-ways-to-build-good-string
convert-the-temperature/index.ts
@@ -0,0 +1,5 @@
1
+export default function convertTemperature(celsius: number): number[] {
2
+ const kelvin = celsius + 273.15;
3
+ const fahrenheit = celsius * 1.8 + 32.0;
4
+ return [kelvin, fahrenheit];
5
+}
0 commit comments