- 博客(11)
- 资源 (42)
- 收藏
- 关注
转载 利用不均匀硬币产生等概率
问题描述:有一枚不均匀的硬币,已知抛出此硬币后,正面向上的概率为p(0 < p < 1)。请利用这枚硬币产生出概率相等的两个事件。这个问题跟之前的利用等概率Rand5产生等概率Rand3非常像,但却简单的多。几个月前还为这个事情头疼了一下,现在想来真是不应该。某一次抛出硬币,正面向上的概率是p,反面向上的概率是1 - p,当p不等于0.5时,这两个事件的概率就不一样了。怎么能凑...
2018-09-26 17:25:28 4825
转载 An Introduction to Scientific Python – Pandas
An Introduction to Scientific Python – PandasPandas has got to be one of my most favourite libraries… Ever.Pandas allows us to deal with data in a way that us humans can understand it; with labelle...
2018-09-23 10:43:11 371
转载 Subset with no pair sum divisible by K
Given an array of integer numbers, we need to find maximum size of a subset such that sum of each pair of this subset is not divisible by K.We can solve this problem by computing modulo of array num...
2018-09-19 20:41:39 268
转载 An Introduction to Scientific Python – Matplotlib
An Introduction to Scientific Python – MatplotlibOne of the most popular uses for Python, especially in recent years is data processing, analysis and visualisation. This then leads topics such as th...
2018-09-19 10:55:27 341
原创 C++中的sprintf_s格式化string
char input[200];std::string s = "C:\\";sprintf_s(input, "%s", s.c_str());注意要调用c_str().
2018-09-17 19:27:42 3952
原创 搜狗2019校园招聘笔试-智能图像识别图像研究员
注:图片来源网络。双指针。参见Minimum Window Substring。#include<iostream>#include<vector>#include<string>#include<algorithm>#include <set>#include <map>using namesp...
2018-09-14 20:28:01 779
原创 京东2019校招算法岗笔试题
注:图片来源于网络。利用两个数组进行映射,使得s[i] = num, t[i] = num。代码未完全测试,仅供参考。#include<iostream>#include<vector>#include<string>using namespace std;bool similar(const string& s, const...
2018-09-10 18:44:16 1851
原创 进制转换C++
进制转换部分可使用cstdlib库中的strtol():#include <cstdlib>#include<iostream>#include <string>using namespace std;int main(){ string s1 = "12a"; //指向第一个未被识别出的字符。如16进制状态下,出现了字符f, 则指向该字...
2018-09-09 14:42:51 864
转载 matlab filter函数C实现
https://groups.google.com/d/msg/comp.soft-sys.matlab/TpI55V__870/OecRMp3TCcIJ/* http://mechatronics.ece.usu.edu/yqchen/filter.c/FILTER.C FILTER.C An ANSI C implementation of MATLAB FILTER.M (bui...
2018-09-03 21:53:54 3158
原创 pandas
apply mapmap()将函数作用于Series中的每个元素apply()作用于DataFrame中的行或者列,一维的向量上,求每个列的均值等操作...applymap()作用于DataFrame的每个元素上计算某一列中的去重复后的元素数:df[df.columns[1]].nunique()sortdf.sort_values(by=['col1'])df.sor...
2018-09-03 21:52:16 182
转载 An overview of object detection: one-stage methods
An overview of object detection: one-stage methods.In this post, I'll discuss an overview of deep learning techniques for object detection using convolutional neural networks. Object detection is us...
2018-09-03 10:16:05 832
pytorch_1.6.0_docs_tutorials.rar
2020-08-01
opencv_contrib345_x64_vc12_vc14_vc15
2018-12-23
opencv_contrib-4.0.0-mingw53_32
2018-11-20
opencv400_vc14_vc15_x86_x64
2018-11-19
opencv343-mingw53_32
2018-10-29
opencv343_vc10_x86_64
2018-10-13
opencv400-alpha
2018-10-13
IrfanView4.51
2018-09-19
tensorflow1.7.1_cpu_x64_vc14_release dll
2018-07-20
opencv342_vc10_vc12_x86_64
2018-07-20
pytorch_1.9.0_docs_tutorials.zip
2021-06-19
pytorch_1.7.0_docs_tutorials.zip
2020-10-28
ChromeStandaloneSetup64_83.0.4103.116.exe
2020-07-12
gdal202.dll/gdal300.dll
2020-01-14
chrome-amd64_79.0.3945.117.deb
2020-01-13
opencv420_contrib_vc14_vc15_vc16_x64.rar
2019-12-25
chrome_73.0.3683.103.deb
2019-04-12
ChromeStandaloneSetup64_72.0.3626.109.exe
2019-02-15
opencv_contrib401_x86_x64_vc14_vc15
2018-12-25
opencv_contrib345_x86_vc12_vc14_vc15
2018-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人