| 分类 leetcode | Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array nums = [1,1,1,2,2,3],You... ...
分类:
其他好文 时间:
2020-01-29 12:53:10
阅读次数:
91
| 分类 leetcode | Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most signifi... ...
分类:
其他好文 时间:
2020-01-29 12:44:58
阅读次数:
82
一、题目说明 11.Container With Most Water,这个题目难度是 Medium 。 二、我的做法 乍一看,简单啊,两个for循环就可以了,我在本地写的。 真是亮瞎我的钛合金狗眼啊。醉了! ...
分类:
其他好文 时间:
2020-01-28 09:18:29
阅读次数:
339
Python2 >>> >>> isinstance(b'abc', bytes) True >>> >>> isinstance(b'abc', str) True >>> >>> isinstance('abc', str) True >>> >>> isinstance('abc', byte ...
分类:
编程语言 时间:
2020-01-28 00:07:03
阅读次数:
128
勇者斗恶龙(The Dragon of Loowater, UVa 11292) 你的王国里有一条n个头的恶龙,你希望雇一些骑士把它杀死(即砍掉所有头)。村里有m个骑士可以雇佣,一个能力值为x的骑士可以砍掉恶龙一个直径不超过x的头,且需要支付x个金币。如何雇佣骑士才能砍掉恶龙的所有头,且需要支付的金 ...
分类:
其他好文 时间:
2020-01-27 23:37:40
阅读次数:
104
前言 在网络传输中有两种特别出名,一种是tcp,一种是udp。 他们都是基于套接字,tcp 属于sock_stream 类型,udp 属于sock_dgram。 sock_steam: 1. 传输过程不会有数据丢失。 2. 按序传输数据。 3. 传输的数据不存在数据边界。 sock_dgram 1. ...
分类:
其他好文 时间:
2020-01-27 18:59:37
阅读次数:
117
week1 每日推荐 拿到Wireshark capture file后,按常规思路,用foremost命令拿到一个加密的压缩包,之后文件 导出对象 http,看到最大的一个文件里面最后提示密码是6位数字,修复了加密压缩包,爆破,暴不出来,菜就完了。 赛后看了大佬wp 1、用HxD打开最大的文件,注 ...
分类:
其他好文 时间:
2020-01-27 18:52:03
阅读次数:
122
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:
其他好文 时间:
2020-01-27 13:55:18
阅读次数:
58
1 #include<cstdio> 2 #include<cstring> 3 #include<queue> 4 using namespace std; 5 typedef struct state STA; 6 struct state 7 { 8 int cup[3],water; 9 b ...
分类:
其他好文 时间:
2020-01-26 19:26:27
阅读次数:
54
第一篇 "终结Linked List(一)" 、 "终结Linked List(二)" 主要讲了单链表的基础知识,接下来的第二篇主要讲一些比较经典的问题。 一、 给一个单链表和一个整数,返回这个整数在链表中出现了多少次。 也可以用 循环实现。 二、 给一个单链表和一个index,返回index位置上 ...
分类:
其他好文 时间:
2020-01-26 17:38:28
阅读次数:
85