1. deque 的赋值 deque.assign(beg,end); //将[beg, end)区间中的数据拷贝赋值给本身。注意该区间是左闭右开的区间。 deque.assign(n,elem); //将n个elem拷贝赋值给本身。 deque& operator=(const deque &de ...
分类:
其他好文 时间:
2020-05-02 23:15:11
阅读次数:
91
typedef struct LinkNode{ //链式队列结点 int data; struct LinkNode *next; }LinkNode; typedef struct{ //链式队列 LinkNode *front,*rear; //队列头指针和尾指针 }LinkQueue; vo ...
分类:
其他好文 时间:
2020-05-02 22:44:19
阅读次数:
51
<ul> <li>Wow我真帅</li> <li>Wow我真帅</li> <li>Wow我真帅</li> </ul> 将上述列表进行CSS操作实现下述效果 相关代码如下 ul li{ list-style: none; counter-increment: number; } ul li:befor ...
分类:
Web程序 时间:
2020-05-02 19:22:04
阅读次数:
69
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ...
分类:
编程语言 时间:
2020-05-02 18:51:05
阅读次数:
118
dfs,thread,python3,defaultdict,换根dp Counter,元组map 捕获异常 数组排序翻转切片 bfs accumulate 二维数组读入,math库调用 字符串 counter数组 bisect(lower_bound upper_bound) 列表推导式 dfs, ...
分类:
编程语言 时间:
2020-05-02 14:33:59
阅读次数:
82
记录下书中的例子 1.1文本和词汇 首先得下载 import nltk nltk.download() 下载器的Collections选项卡下,选择book然后下载 如果下载缓慢或者报错,建议找百度云的包效果是一样的 进入IDLE,输入from nltk.book import *,出现以下结果代表 ...
分类:
编程语言 时间:
2020-05-02 12:15:43
阅读次数:
92
使用单调队列解决滑动窗口的最大值 #include <iostream> #include <deque> #include <vector> using namespace std; class MonotonicQueue { // 构建单调队列 private: deque<int> data ...
分类:
其他好文 时间:
2020-05-01 16:55:52
阅读次数:
68
一、 连接数据库 1、连接数据库 mongo 清屏:cls 查看所有数据库列表 show dbs 1、使用数据库、创建数据库 use itying 如果真的想把这个数据库创建成功,那么必须插入一个数据。 数据库中不能直接插入数据,只能往集合(collections)中插入数据。下面命令表示给 ity ...
分类:
数据库 时间:
2020-05-01 14:36:26
阅读次数:
75
1 #include <iostream> 2 #include <stdlib.h> 3 #define MAX_SIZE 4 4 using namespace std; 5 typedef int ElemType; 6 typedef struct sequeue{ 7 ElemType d ...
分类:
编程语言 时间:
2020-05-01 12:35:59
阅读次数:
62
补充一个多线程场景下常使用的工具-Queue。 第一步:__init__() 1 class Queue: 2 3 def __init__(self, maxsize=0): 4 self.maxsize = maxsize 5 self._init(maxsize) 6 7 # mutex mu ...
分类:
其他好文 时间:
2020-04-30 21:23:06
阅读次数:
56