1class Solution {2 public:3 int addDigits(int n) {4 return n < 10 ? n : addDigits(n / 10 + n % 10);5 }6};
WPM •0 •0
ACC •0 •0
TIME •0