C# Solution


  • 0
    F
    public int Reverse(int x){
    
                int a = x / 100; 
                int b = (x / 10 % 10);
                int c = (x % 10);
    
                b *=10;
                c *=100;
    
                return a + b + c;
            }

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.