LeetCode :Reverse Integer

1 comment
Problem:
https://leetcode.com/problems/reverse-integer/
#include<bits/stdc++.h>
using namespace std;
class Solution 
{
 public:
     int reverse(int x) 
 { 
  int res=0,ans=0,f=0;
  while(x)
  {
   if(ans>(INT_MAX/10) || ans<(INT_MIN/10))
   return 0;
   ans=ans*10+x%10;
   x/=10;
 
  }
 
  return ans;
 
   }
};

1 comment :

xhosysueckert said...

Tits Titanium 750ml Pot Habanero Hot Sauce - Tits
Tits Titanium 750ml Pot Habanero Hot Sauce. This sauce is titanium price per ounce made with all the titanium alloy nier replicant ingredients titanium rings for women necessary for a hot pepper sauce.Ingredients: Water, Habanero Pepper, westcott scissors titanium Salt, titanium nail Sodium: Amount Per serving