![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
jikiy9
个人网站 https://www.deepdo.vip
展开
-
Reverse Integer leetcode python
class Solution(object): def reverse(self,x): """ :param x:int :return: int """ max_num=2147483647 min_num=-2147483648 flag=0 if x0原创 2015-12-08 20:47:51 · 428 阅读 · 0 评论 -
python int to binary and count the number of 1
import collections class Solution(object): def hammingWeight(self,n): """ :param n:int :return: int """ k="{0:b}".format(n) m=collections.Counter(k原创 2015-12-05 16:41:42 · 397 阅读 · 0 评论 -
Climbing Stairs-python
class Solution(object): def climbStairs(self,n): """ :param n: int :return: int """ t=[1,1] i=2 if n>=2: while in:原创 2015-12-05 18:46:46 · 569 阅读 · 0 评论