| 1 | class Solution { |
| 2 | public: |
| 3 | string addStrings(string num1, string num2) { |
| 4 | return to_string(std::stoi(num1)+std::stoi(num2)); |
| 5 | // std::stoi is used to convert string to int (default is decimal, but the base can also be defined as a second parameter) |
| 6 | // to_string converts int to string |
| 7 | } |
| 8 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected