1、理论铺垫 Dataframe和Series均适用 ~集中趋势:均值mean()、中位数median()、与分位数quantile(q=0.25)、众数mode() ~离中趋势:标准差std()、方差var() import scipy.stats as ss 正态分布:ss.norm 、卡方分布 ...
分类:
其他好文 时间:
2019-08-27 21:13:27
阅读次数:
110
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2019-08-27 19:34:02
阅读次数:
112
Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorithm should use only constant extra space. You may no ...
分类:
其他好文 时间:
2019-08-27 01:15:11
阅读次数:
127
目标检测算法可以分为两类: 一类是基于region proposal的R-CNN系列算法(R-CNN,Fast R-CNN, Faster R-CNN),它们是two-stage的。要先使用启发式方法(selective search)或者CNN网络(RPN)产生region proposal,然后 ...
分类:
其他好文 时间:
2019-08-26 14:40:27
阅读次数:
136
Leetcode之二分法专题-167. 两数之和 II - 输入有序数组(Two Sum II - Input array is sorted) 给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 index1 和 index2,其中 index1 ...
分类:
编程语言 时间:
2019-08-26 10:01:01
阅读次数:
93
原文引用https://www.dazhuanlan.com/2019/08/26/5d62fb8538067/ Island Perimeter 原题: You are given a map in form of a two-dimensional integer grid where 1 re ...
分类:
其他好文 时间:
2019-08-26 09:37:56
阅读次数:
95
原文引用https://www.dazhuanlan.com/2019/08/26/5d63036ee8731/ 原题:Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted arra... ...
分类:
其他好文 时间:
2019-08-26 09:37:22
阅读次数:
76
Description: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. ...
分类:
其他好文 时间:
2019-08-26 00:27:18
阅读次数:
63
1. 函数名的运用 你们说一下,按照你们的理解,函数名是什么? 函数名的定义和变量的定义几乎一致,在变量的角度,函数名其实就是一个变量,具有变量的功能:可以赋值;但是作为函数名他也有特殊的功能就是加上()就会执行对应的函数,所以我们可以把函数名当做一个特殊的变量,那么接下来,我们就来研究一下这个特殊 ...
分类:
其他好文 时间:
2019-08-25 20:01:04
阅读次数:
116
函数与方法的区别函数 : 直接通过函数名称调用方法 : 属于某个类 , 通过对象调用对于方法的访问控制也是不提供的 , 类似于对属性的设置class className(object): def one(self): pass def _two(self): pass def __three(sel ...
分类:
其他好文 时间:
2019-08-25 18:27:49
阅读次数:
116