1213清心
1213清心
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
1213清心的博客
进击的小白
全部文章
(共3篇)
构建乘积数组
分为左右两部分计算,各自递归得到结果后相乘 # -*- coding:utf-8 -*- class Solution: def multiply(self, A): # write code here left,right=[1,A[0]],[A[-1],1...
python
2019-10-06
0
526
找“异数“
思路就是全部化为十进制,只出现一次的数字用输入的形式记录,再出现就用0覆盖记录 import collections nums=collections.OrderedDict() while True: try: s=input() n,m=s.split('...
python
2019-10-04
0
857
数组中出现次数超过一半的数字
# -*- coding:utf-8 -*- class Solution: def MoreThanHalfNum_Solution(self, numbers): ...
python
2019-10-04
2
760