上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页
摘要: # -*- coding:utf-8 -*- class Solution: def PrintMinNumber(self, numbers): # write code here """采用冒泡排序的思想""" # 将list转为字符类型 strnumbers = list(map(str,numbers)) n = len(strnumbers) if n<=1: return ''.joi 阅读全文
posted @ 2019-08-16 20:34 lililili—— 阅读(193) 评论(0) 推荐(0)
摘要: def MergeSort(array): arrayLen = len(array) # 先判断边界条件 if arrayLen<1: return [] if arrayLen == 1: return array #做map操作,也就是divide index = arrayLen//2 arrayl... 阅读全文
posted @ 2019-08-16 17:08 lililili—— 阅读(125) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/wushaowu2014/article/details/94734203 阅读全文
posted @ 2019-08-15 16:49 lililili—— 阅读(300) 评论(0) 推荐(0)
摘要: 这道题的思路,和面试题39,56一致,我都牺牲了空间,也就是空间复杂度为O(n),时间复杂度为O(n) 但是显然这个思路不是最优的思路。 阅读全文
posted @ 2019-08-15 15:03 lililili—— 阅读(179) 评论(0) 推荐(0)
摘要: # -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None import copy class Solution: # 返回二维列表,内部每个列表表示找... 阅读全文
posted @ 2019-08-15 12:01 lililili—— 阅读(101) 评论(0) 推荐(0)
摘要: # -*- coding:utf-8 -*- class Solution: def VerifySquenceOfBST(self, sequence): # write code here # 先判断边界 if sequence == []: return False root = sequen... 阅读全文
posted @ 2019-08-15 11:05 lililili—— 阅读(195) 评论(0) 推荐(0)
摘要: 问题1:<bound method NDFrame.head of 刚开始还以为是自己的数据集有问题,怎么显示不对呢! 解决: 仔细观察,是自己给的输出有问题,data.head什么鬼??? 正确应该 data.head() 阅读全文
posted @ 2019-08-14 16:26 lililili—— 阅读(1700) 评论(0) 推荐(1)
摘要: # -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # 返回从上到下每个节点值列表,例:[1,2,3] ... 阅读全文
posted @ 2019-08-14 11:46 lililili—— 阅读(171) 评论(0) 推荐(0)
摘要: 这道题没有做出来 阅读全文
posted @ 2019-08-14 11:30 lililili—— 阅读(107) 评论(0) 推荐(0)
摘要: 学习笔记 那你怎么去建立这样一个数据集呢? 我们从一个很小的例子切入,如果让我来收集信用卡欺诈数据集,那我能拿到的数据都是正常的,怎么去判别不正常的数据集呢?可想而知,自己建立一个有标签的数据集是一个很困难的任务。 对异常检测案例训练数据集进行分类: 1.数据有标签,直接当成分类问题处理。我们希望机 阅读全文
posted @ 2019-08-14 11:27 lililili—— 阅读(309) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页