1class Solution {2 public:3 bool isSameAfterReversals(int num) {4 return num == 0 || num % 10 > 0; // All you have to do is check the Trailing zeros5 }6};
WPM •0 •0
ACC •0 •0
TIME •0