-
Notifications
You must be signed in to change notification settings - Fork 0
2469_Convert heTemperature
a920604a edited this page Apr 14, 2023
·
1 revision
class Solution {
public:
vector<double> convertTemperature(double celsius) {
vector<double> ret(2,0);
ret[0] = celsius+273.15;
ret[1] = celsius*1.80 + 32.0;
return ret;
}
};
- time complexity
O(1)
- space complexity
O(1)
footer