自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(64)
  • 资源 (1)
  • 收藏
  • 关注

原创 Leetcode 38. Count and Say

The count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113. 214. 12115. 1112211 is read off as "one 1" or 11.11 is read off ...

2018-12-31 21:07:37 173

原创 C++的模板类举例

举个简单例子,一个类有一个判断两个数大小Max的方法。我们但这两个数有很多种类型,int,unsigned int,double,long long,甚至string类型,总不能每种类型都写一下吧,工作量大而且重复。这个时候:我们写的时候,具体类型不指定,只写个模板类型(告诉函数,有一种类型的参数会传过来),具体使用的时候再给参数类型上个例子:#include<bits/std...

2018-12-31 11:13:20 577

原创 C++类的继承,构造函数,多态

继承就是儿子类继承父亲类,这里我们举个例子,父亲是老王,儿子是小王老王的工作是:修车如果儿子不重新定义工作的话,子承父业,所以小王的工作也是:修车老王的爱好是:旅游小王也能调用老王的爱好这个函数就像现实生活中的儿子继承父亲的一些的东西一样。#include<bits/stdc++.h>using namespace std;class Father{pu...

2018-12-31 10:44:41 472

原创 10Base-5和10Base-2

Ø使用同轴电缆的以太网可分为粗缆以太网(10Base-5)和细缆以太网(10Base-2)。Ø粗缆以太网(10Base-5):10Mbps速率基带信号,传输距离500米。需要使用外置收发器和连接器,安装困难。Ø细缆以太网(10Base-2):10Mbps速率基带信号,传输距离200米(185米)。网卡内置收发器,安装方便。由于需要切断电缆接入网络,易引起故障,且难以定位。...

2018-12-28 21:25:52 6557

原创 Packet Tracer 6.0 百度云

链接:https://pan.baidu.com/s/1a0aE2mDM8NoZx8_l4_jjpw 提取码:lvec  

2018-12-28 21:08:09 6163 2

原创 Leetcode 36. Valid Sudoku(附上ASCII表)

Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:Each row must contain the digits 1-9 without repetition. Each column must conta...

2018-12-28 19:16:11 127

原创 linux tar解压命令

tar-x:解压-z:有gzip属性的下面的参数-f是必须的-f: 使用档案名字,切记,这个参数是最后一个参数,后面只能接档案名。 *.tar.gz和*.tgz 用 tar -xzf 解压  ...

2018-12-27 22:57:54 140

原创 Windows系统cmd网络常用命令

pingARPTracertRouteipconfigNetstatNbtstatPathpingNetshnetArp –a :显示所有的ARP表项其他参数: Arp -s:在ARP缓存中添加一条记录. C:\>Arp -s 126.13.156.2 02-e0-fc-fe-01-b9 ...

2018-12-27 11:04:40 12224

原创 A类,B类,C类,D类,E类网

D类地址不分网络地址和主机地址,它的第1个字节的前四位固定为1110。D类地址又分为三种类型:即专用地址、公用地址和私用地址;其中专用地址(224.0.0.0-224.0.0.255)用于网络协议组的广播,公用地址(224.0.1.0-238.255.255.255)用于其它组播,私用地址(239.0.0.0-239.255.255.255)用于测试。E类地址不区分网络地址和主机地址,...

2018-12-27 10:35:36 18897

原创 路由器的检查命令

show versionØ显示路由器的硬件配置、端口信息、软件版本、配置文件的名称、来源以及引导程序来源。show processØ显示当前进程的各种信息。show interface[type slot/port]Ø命令指定端口,显示的第一行给出端口正确的插槽号、端口编号以及端口及线路的协议状态、工作状态等。show running-configØ显示当前配置sh...

2018-12-27 10:28:46 1917

原创 路由器的3种基本工作模式以及进入命令

路由器有三种基本的访问模式:用户模式、特权模式及配置模式。 用户模式——这种模式提供了一定的路由器访问权限。允许执行一些非破坏性的命令,检查路由器的配置参数。但不能对路由器配置进行任何改动。Ø    启动路由器时,缺省模式就是用户模式。用户模式下,提示符为路由器名加上“>”字符,如 “Router>”。  特权模式——即“使能”(Enable)模式。这种模式允许对路由器...

2018-12-27 10:16:20 12731

原创 pyqt5第一个程序——显示一个窗口,button,更换图标,显示message

 from PyQt5 import QtWidgets, QtGuiimport sysapp = QtWidgets.QApplication(sys.argv)window = QtWidgets.QWidget();window.resize(250, 150)window.move(300, 300)window.setWindowTitle('window')wi...

2018-12-26 20:48:32 1000

原创 Leetcode 35. Search Insert Position

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array....

2018-12-26 20:37:29 106

原创 Leetcode 34. Find First and Last Position of Element in Sorted Array

Given an array of integersnumssorted in ascending order, find the starting and ending position of a giventargetvalue.Your algorithm's runtime complexity must be in the order ofO(logn).If the...

2018-12-26 20:24:46 116

原创 同轴电缆常识

同轴电缆Ø同轴电缆的内芯是硬铜线,外包一层绝缘材料,该绝缘材料用密织的网状导体环绕,网外又覆盖一层保护性材料。Ø从结构看同轴电缆由于屏蔽性比双绞线好,因此具有更高的带宽和更好地抑制噪声的能力。Ø根据传输频带的不同,同轴电缆可以分为基带同轴电缆和宽带同轴电缆两种。Ø根据直径的不同,同轴电缆又可以分为粗缆和细缆两种。•粗缆的布线距离较长,可靠性较好,所以适用于比较大的局域网的布线。...

2018-12-26 16:51:38 4373

原创 双绞线常识

双绞线可以分为屏蔽双绞线(STP)和非屏蔽双绞线(UTP),传输速率可达10Gbps。屏蔽双绞线分为STP和FTP。非屏蔽双绞线(UnshieldedTwistedPair,缩写UTP),UTP网线由一定长度的双绞线和RJ-45水晶头组成。 ...

2018-12-26 16:32:51 1659

原创 3种类型的网卡端口

网络接口卡(Network Interface Card,NIC),通常简称为网卡RJ-45端口:通常用于双绞线的接口。BNC端口:通常用作细同轴电缆的接口。AUI端口:通常用作粗同轴电缆的接口。...

2018-12-26 16:25:14 4120

原创 Leetcode 33. Search in Rotated Sorted Array

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e.,[0,1,2,4,5,6,7]might become[4,5,6,7,0,1,2]).You are given a target value to search. If found ...

2018-12-25 21:12:52 115

原创 怎样查看win10下Python安装路径

where python

2018-12-25 18:57:42 6120

原创 扩展ACL配置 禁止内网用户访问有毒网站

R1(config)# access-list 100 deny tcp 192.168.0.0 0.0.255.255 host 60.54.145.21 eq 80R1(config)# access-list 100 permit ip any anyR1(config)# interface e0R1(config-if)# ip access-group 100 in ...

2018-12-25 16:33:01 1140

原创 扩展ACL配置 禁止外网用户用Telnet远程登录本路由器。

R1(config)# access-list 100 deny tcp any host 200.1.1.1 eq 23R1(config)# access-list 100 deny tcp any host 192.168.0.1 eq 23R1(config)# access-list 100 permit ip any anyR1(config)# interface s0...

2018-12-25 16:25:09 7326

原创 扩展ACL配置 局域网只允许Web通信流量和Ftp通信流量

R1(config)# access-list 100 permit tcp any any eq 80R1(config)# access-list 100 permit tcp any any eq 20R1(config)# access-list 100 permit tcp any any eq 21R1(config)# interface e0R1(config-if)...

2018-12-25 16:17:53 2530 1

原创 标准ACL配置举例(某公司经理部、财务部和销售部)

 某公司经理部、财务部和销售部分别属于3个不同的网段,通过路由器传递信息。要求:销售部PC2不能访问财务部PC3;经理部PC1可以访问财务部PC3。第一步:R1接口参数和OSPF协议配置Router>enRouter#conf tRouter(config)#hostname R1R1(config)#int f0/0R1(config-if)#ip add...

2018-12-25 15:52:08 5686 2

原创 ACL拒绝同个网段一定范围用户访问

R1(config)# access-list 1 deny 172.30.16.0 0.0.15.255R1(config)# access-list 1 deny 172.30.32.0 0.0.0.255R1(config)# access-list 1 deny 172.30.33.0 0.0.0.255R1(config)# access-list 1 permi...

2018-12-25 15:43:56 8589

原创 ACL允许某个网段的用户访问

R1(config)# access-list 1 deny host 192.168.20.1R1(config)# access-list 1 deny host 192.168.20.5R1(config)# access-list 1 permit 192.168.20.0 0.0.0.255R1(config)# interface e0R1(config-if)# ip ...

2018-12-25 15:42:23 2931

原创 ACL拒绝特定用户访问

R1(config)# access-list 1 deny 192.168.10.0 0.0.0.255R1(config)# access-list 1 permit anyR1(config)# interface e0R1(config-if)# ip access-group 1 out注意:access-list 1 permit any语句不能省略,如果省略该语句,...

2018-12-25 15:38:57 1853

原创 ACL允许特定用户访问

R1(config)# access-list 1 permit 10.0.0.0 0.255.255.255R1(config)# access-list 1 permit 192.168.0.0 0.0.0.255R1(config)# access-list 1 permit 192.168.1.0 0.0.0.255R1(config)# interface e0R1(con...

2018-12-25 15:35:24 4131

原创 Leetcode 31. Next Permutation

Implementnext permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible o...

2018-12-24 22:47:59 116

翻译 dffff

 

2018-12-24 11:50:56 315

原创 Leetcode 29. Divide Two Integers

Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividing dividend by divisor.The integer division sho...

2018-12-23 22:57:08 82

原创 Leetcode 28. Implement strStr()

ImplementstrStr().Return the index of the first occurrence of needle in haystack, or-1if needle is not part of haystack.Example 1:Input: haystack = "hello", needle = "ll"Output: 2Example...

2018-12-22 20:23:27 108

原创 Leetcode 27. Remove Element

Given an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifying the input arra...

2018-12-22 20:04:08 81

原创 Leetcode 26. Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by modifyi...

2018-12-22 15:35:57 85

翻译 非对称加密技术- RSA算法数学原理分析

声明: 本篇博客大部分内容来自于参考文献1,但也整合了参考文献2,又加上自己的代码和分析,本篇博客定义为翻译所谓非对称,就是指该算法需要一对密钥,使用其中一个(公钥)加密,则需要用另一个(私钥)才能解密。但是对于其原理大部分同学应该都是一知半解,今天就来分析下经典的非对称加密算法 - RSA算法。通过本文的分析,可以更好的理解非对称加密原理,可以让我们更好的使用非对称加密技术。RSA算...

2018-12-22 14:44:29 718

原创 leetcode 25. Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.kis a positive integer and is less than or equal to the length of the linked list. If the number of ...

2018-12-22 14:16:22 106 2

翻译 Does fish drink

  

2018-12-22 10:24:37 176

翻译 The science of the siesta 午休的学问

when you go back to work or class after launch, why is it so hard to stay awake?Although we get energy from food, we also use lots of energy to digest it.Your energy use increases 25-50% as you di...

2018-12-20 20:26:39 204

原创 Leetcode 24. Swap Nodes in Pairs

Given alinked list, swap every two adjacent nodes and return its head.Example:Given 1->2->3->4, you should return the list as 2->1->4->3.Note:Your algorithm should use only...

2018-12-20 20:00:13 113 1

原创 Leetcode 23. Merge k Sorted Lists

Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4, 2->6]Output: 1->1->2->3->4-...

2018-12-20 19:41:06 96 1

原创 Leetcode 22. Generate Parentheses

Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:[ "((()))", "(()())", "(())()", "()(())"...

2018-12-19 22:24:05 187

wireshark抓包分析

wireshark抓包,选取其中一个报文,详细分析。

2018-12-07

空空如也

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

TA关注的人

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