题目链接 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 题解一 双指针:一个“快”,一个“慢” 快指针先到达链表末尾 具体思路见代码及注释 // Problem: LeetCode 19 // URL: http ...
分类:
其他好文 时间:
2020-07-30 21:51:26
阅读次数:
72
一、BGP属性分类 公有必遵 Origin(起源属性) IGP(i)、EGP(e)、Incomplete(?) AS-PATH(路径属性) 越短越优(EBGP、IBGP) Next-Hop(下一跳属性) / 公认任意 Local Pref(本地优先级属性) 越大越优(IBGP) 可选过渡 Commu ...
分类:
其他好文 时间:
2020-07-30 21:46:41
阅读次数:
80
第一步:先创建父工程 1、Create New Project 或File>New>Project... 或 2、选择Spring Initializr,然后点击Next 3、输入Group与Artifact,其中GroupId为域.公司名,Artifact为项目名 ,Java Version选 8 ...
分类:
编程语言 时间:
2020-07-30 10:46:25
阅读次数:
150
节点的数据结构 struct Node { int value; struct Node* next; }; typedef struct Node Node; 操作和演示 #include <stdlib.h> #include <stdio.h> // 建立一个节点 Node *createNo ...
分类:
编程语言 时间:
2020-07-30 01:18:43
阅读次数:
82
示例对象: { name: 'a', next: [ { name: 'b', next: [ { name: 'd', next: [] }, { name: 'e', next: [] } ] }, { name: 'c', next: [ { name: 'f', next: [] }, { ...
分类:
Web程序 时间:
2020-07-29 21:58:21
阅读次数:
115
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv ...
分类:
Web程序 时间:
2020-07-29 21:40:24
阅读次数:
101
clause.hpp clause.cpp clause.hpp 声明了常用类型的别名: /* */ typedef int * literal_iterator;typedef const int * const_literal_iterator; /* */ 定义结构类型Clause、claus ...
分类:
其他好文 时间:
2020-07-29 21:34:34
阅读次数:
76
安装Git核心程序 根据自己的电脑操作系统从Git官网https://git-scm.com/下载对应的Git核心程序。 以git-2.21.0为例说明安装步骤: 1.双击Git-2.21.0-64-bit.exe 2.点击Next设置安装路径 3.点击Next 4.点击Next 5.点击Next, ...
分类:
其他好文 时间:
2020-07-29 15:16:54
阅读次数:
66
题意 给你一堆字符串,要求找到每个字符串的唯一标识前缀,输出原字符串和唯一标识前缀。 思路 用这堆字符串建字典树,对于每个字符串,我们进行一次查找,若当前位置的cnt为1,就代表从根到现在的位置能唯一标识。 AC代码 #include<iostream> #include<stdio.h> #inc ...
分类:
其他好文 时间:
2020-07-29 12:42:14
阅读次数:
61
// C++ #include<iostream> using namespace std; //链表的定义 struct ListNode { int val; ListNode* next; ListNode(int n) :val(n), next(nullptr) {} }; //链表的打印 ...
分类:
其他好文 时间:
2020-07-29 09:59:12
阅读次数:
68