예제 #1
0
        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}");
                }
            }
        }
예제 #2
0
        public int ReverseInteger(int x)
        {
            var solver = new ReverseInteger();

            return(solver.Solution(x));
        }