自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

junex的博客

hello world

  • 博客(4)
  • 收藏
  • 关注

原创 马尔科夫链(markov chain)

A Markov chain is “a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event.”马尔科夫链虽然听上去很高深莫测,但其...

2018-05-13 23:41:39 4713

转载 从标准输入输出看流和缓冲区

学习标准输入输出,我们都会遇到一个概念,流和缓冲区,但到底什么是流,什么是缓冲区呢? 书《C Primer Plus》上说,C程序处理一个流而不是直接处理文件。后面的解释十分抽象:『流(stream)是一个理想化的数据流,实际输入或输出映射到这个数据流』。这个流具体是一个怎么样的东西呢?流这个定义非常的形象。我们可以这样理解: 你声明一个FILE *fp ,并把fopen(某个文件...

2018-05-07 16:40:27 1152 1

原创 Leetcode 677. Map Sum Pairs

题目链接 Implement a MapSum class with insert, and sum methods. For the method insert, you’ll be given a pair of (string, integer). The string represents the key and the integer represents the valu...

2018-05-07 08:55:20 372

原创 Leetcode 76. Minimum Window Substring

题目链接 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).自然的想法是从左向右扫,将S[i]加入window。当window满足条件时,尝试从window头踢字符(为了使window最小...

2018-05-06 22:45:39 137

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除