public void TestReverseInteger() { var demo = new ReverseInteger(); checked { for (var i = int.MaxValue - 10000; i < int.MaxValue; i++) { var result = demo.Solution(i); _output.WriteLine($"i:{i},reuslt:{result}"); } } }
public int ReverseInteger(int x) { var solver = new ReverseInteger(); return(solver.Solution(x)); }