题目: 给定一个N个顶点的无向图,顶点从1到N编号,求此无向图割点数。 (当你去掉其中一个点时,形成两个及以上的连通分量,此点即是割点) 输入 第一行包含一个整数N (1 \le N \le 100)N (1≤N≤100)。 接下来若干行,每行有若干整数a, b, c, d, ...a,b,c,d, ...
分类:
其他好文 时间:
2020-09-17 12:35:21
阅读次数:
30
数据结构八大排序中的图解 1.排序的基本概念 2.交换类排序法 ? 1-冒泡排序 ? 2-快速排序 #include <stdio.h> #include <stdlib.h> #include <string.h> int stack[512]; int top = 0; void init_st ...
分类:
编程语言 时间:
2020-09-17 12:34:28
阅读次数:
20
通过前面知识的学习,我们学会了打包样式资源,html资源,图片资源和其他资源。以及学会了通过devServer开启热更新。现在我们便可以开始配置基本的开发环境了; 开发环境基本配置 webpack.config.js的配置如下: /** * 开发环境配置 */ const {resolve} = r ...
分类:
其他好文 时间:
2020-09-17 12:11:38
阅读次数:
29
以下内容为学习记录,可以参考 MDN 原文。 环境 node v12.18.1 npm 6.14.5 vscode 1.46 Microsoft Edge 83 concat concat() 方法用于合并两个或多个数组。此方法不会更改现有数组,而是返回一个新数组。 const array1 = [ ...
分类:
编程语言 时间:
2020-09-16 12:28:10
阅读次数:
38
#include <iostream> using namespace std; const int N = 60; long long dp[N]; int n; void show(){ dp[0]=0;dp[1]=1; dp[2]=2;dp[3]=3;dp[4]=4; for(int i=5; ...
分类:
其他好文 时间:
2020-09-16 12:27:08
阅读次数:
34
动态规划相关代码实现: 1、孩子有多像爸爸——最长的公共子序列 //program 4-1 #include <iostream> #include<cstring> using namespace std; const int N=1002; int c[N][N],b[N][N]; char s ...
分类:
编程语言 时间:
2020-09-16 12:22:41
阅读次数:
30
分治法代码实现 1、猜数游戏——二分搜索技术 //program 3-1 #include<iostream> #include<cstdlib> #include<algorithm> using namespace std; const int M=10000; int x,n,i; int s ...
分类:
编程语言 时间:
2020-09-16 12:21:41
阅读次数:
37
贪心算法相关代码实现 以下代码搬运自《趣学算法》实战演练 1、加勒比海盗船——最优装载问题 #include <iostream> #include <algorithm> const int N=1000005; using namespace std; double w[N]; //古董的重量数 ...
分类:
编程语言 时间:
2020-09-16 12:17:10
阅读次数:
30
Dijkstra🍦 Dijkstra解决单元最短路问题,要求边的大小必须为正 模板: const int maxv=1000; const int inf=1e9; int n,g[maxv][maxv]; int d[maxv]; bool vis[maxv]; void dijkstra(in ...
分类:
其他好文 时间:
2020-09-15 21:10:40
阅读次数:
34
前言:quill-editor组件中的工具栏都是英文,而且最难受的时没有title提示,要怎样给他添加title,并且是中文的title提示呢? 一、创建一个quill-title.js文件 ①、在其中插入以下代码 const titleConfig = { 'ql-bold':'加粗', 'ql- ...
分类:
其他好文 时间:
2020-09-15 21:07:48
阅读次数:
36