python
shimmingvip
这个作者很懒,什么都没留下…
展开
-
python 爬虫---猫眼Top10
python爬猫眼top10转载 2017-10-27 23:45:50 · 693 阅读 · 0 评论 -
面试刷题---查找
# -*- coding:utf-8 -*-class Solution: # array 二维列表 def Find(self, target, array): # write code here n = len(array) flag = 'false' for i in range(n): ...原创 2018-03-04 18:48:58 · 425 阅读 · 0 评论 -
笔试算法---二叉树重建
# -*- coding:utf-8 -*-# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right = Noneclass Solution: # 返回构造的TreeNode根节点 def reCon...原创 2018-03-04 19:36:22 · 264 阅读 · 0 评论 -
笔试算法---变态跳台阶
# -*- coding:utf-8 -*-class Solution: def jumpFloor(self, number): # write code here a = 1 b = 1 for i in range(number): t = a+b a = b ...原创 2018-03-04 20:49:21 · 235 阅读 · 0 评论 -
笔试题---二进制1的位数
# -*- coding:utf-8 -*-class Solution: def NumberOf1(self, n): # write code here flag=1 print(type(flag)) count=0 maxBit=32 for i in range(maxBit):...原创 2018-03-05 19:01:24 · 257 阅读 · 0 评论 -
笔试题---链表反转
# -*- coding:utf-8 -*-# class ListNode:# def __init__(self, x):# self.val = x# self.next = Noneclass Solution: # 返回ListNode def ReverseList(self, pHead): if no...原创 2018-03-05 20:49:05 · 344 阅读 · 0 评论 -
笔试算法---有序链表合并
# -*- coding:utf-8 -*-# class ListNode:# def __init__(self, x):# self.val = x# self.next = Noneclass Solution: # 返回合并后列表 def Merge(self, pHead1, pHead2): # wri...原创 2018-03-05 20:58:06 · 245 阅读 · 0 评论 -
二叉子树判定
# -*- coding:utf-8 -*-# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right = Noneclass Solution: def HasSubtree(self, pRoot1, pRo...原创 2018-03-05 21:24:08 · 416 阅读 · 0 评论