自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 使用Frp进行内网穿透

由于工作需要,我们通常需要远程连接内网的服务器,两个没有公网IP的机器很难直接互联,因此,我们需要一个中介来进行内网穿透。本文将介绍使用FRP进行内网穿透。

2022-11-05 15:49:48 363

原创 蓄水池问题(等概率抽取)详解

蓄水池问题问题背景:如何在N个数据中 等概率地取出k个。如果N会随着时间增长呢?我们先来考虑简单的,就是如何在数据总数会增长的情况下等概率取出其中一个。 设想一段流水线不断流来产品,要求随机取出一个。第一个,很简单,直接取得即可 概率为1/1。如果第二个到来,那么我们在0.5和1直接取得一个随机数,如果大于0.5那么用第二个替换掉第一个,否则不替换。这样前两个每个被选中的概率都是1/2。 第

2017-07-26 11:50:06 1068

转载 【LeetCode解题】3#Longest Substring Without Repeating Characters

题目描述Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", wi

2017-07-07 17:53:41 145

原创 【LeetCode解题】4#Median of Two Sorted Arrays

题目地址题目描述:题目:Median of Two Sorted Array描述:There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complex

2017-07-05 18:34:06 176

原创 【LeetCode解题】1#Two Sum

题目:Two Sum描述:     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 exactly one solution, and

2017-07-05 16:40:12 261

空空如也

空空如也

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

TA关注的人

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