- 博客(38)
- 资源 (5)
- 收藏
- 关注
转载 [力扣算法刷题学习]23. 合并 K 个升序链表 24. 两两交换链表中的节点
链接:https://leetcode.cn/problems/merge-k-sorted-lists/solutions/219756/he-bing-kge-pai-xu-lian-biao-by-leetcode-solutio-2/链接:https://leetcode.cn/problems/swap-nodes-in-pairs/solutions/444474/liang-liang-jiao-huan-lian-biao-zhong-de-jie-di-91/
2023-04-25 18:05:01
191
转载 [力扣算法刷题学习]21. 合并两个有序链表 22. 括号生成
链接:https://leetcode.cn/problems/merge-two-sorted-lists/solutions/226408/he-bing-liang-ge-you-xu-lian-biao-by-leetcode-solu/链接:https://leetcode.cn/problems/generate-parentheses/solutions/192912/gua-hao-sheng-cheng-by-leetcode-solution/来源:力扣(LeetCode)
2023-04-22 16:18:22
186
转载 [力扣算法刷题学习]19. 删除链表的倒数第 N 个结点 20. 有效的括号
链接:https://leetcode.cn/problems/remove-nth-node-from-end-of-list/solutions/450350/shan-chu-lian-biao-de-dao-shu-di-nge-jie-dian-b-61/链接:https://leetcode.cn/problems/valid-parentheses/solutions/373578/you-xiao-de-gua-hao-by-leetcode-solution/
2023-04-14 11:39:46
203
转载 [力扣算法刷题学习]17. 电话号码的字母组合 18. 四数之和
链接:https://leetcode.cn/problems/letter-combinations-of-a-phone-number/solutions/388738/dian-hua-hao-ma-de-zi-mu-zu-he-by-leetcode-solutio/链接:https://leetcode.cn/problems/4sum/solutions/436368/si-shu-zhi-he-by-leetcode-solution/comments/1677864。
2023-04-13 14:17:00
151
转载 [力扣算法刷题学习]15. 三数之和 16. 最接近的三数之和
链接:https://leetcode.cn/problems/3sum-closest/solutions/301382/zui-jie-jin-de-san-shu-zhi-he-by-leetcode-solution/链接:https://leetcode.cn/problems/3sum-closest/solutions/6959/hua-jie-suan-fa-16-zui-jie-jin-de-san-shu-zhi-he-b/商业转载请联系作者获得授权,非商业转载请注明出处。
2023-04-12 19:01:11
106
转载 [力扣算法刷题学习]13. 罗马数字转整数 14. 最长公共前缀
链接:https://leetcode.cn/problems/roman-to-integer/solutions/774992/luo-ma-shu-zi-zhuan-zheng-shu-by-leetcod-w55p/comments/1639792。方法一是横向扫描,依次遍历每个字符串,更新最长公共前缀。纵向扫描时,从前往后遍历所有字符串的每一列,比较相同列上的字符是否相同,如果相同则继续对下一列进行比较,如果不相同则当前列不再属于公共前缀,当前列之前的部分为最长公共前缀。作者:Smileyan。
2023-04-11 16:28:43
76
转载 [力扣算法刷题学习]9. 回文数 10. 正则表达式匹配
链接:https://leetcode.cn/problems/regular-expression-matching/solutions/295977/zheng-ze-biao-da-shi-pi-pei-by-leetcode-solution/链接:https://leetcode.cn/problems/palindrome-number/solutions/281686/hui-wen-shu-by-leetcode-solution/所谓匹配,是要涵盖 整个 字符串 s的,而不是部分字符串。
2023-04-08 11:54:47
208
转载 [力扣算法刷题学习]7. 整数反转 8. 字符串转换整数 (atoi)
检查下一个字符(假设还未到字符末尾)为正还是负号,读取该字符(如果有)。将前面步骤读入的这些数字转换为整数(即,“123” -> 123, “0032” -> 32)。可以直接存一个临时的翻转结果,如果这个翻转结果除以10不等于上一个结果,说明有溢出。读入下一个字符,直到到达下一个非数字字符或到达输入的结尾。给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。− 1] ,需要截断这个整数,使其保持在这个范围内。如果反转后整数超过 32 位的有符号整数的范围 [−2。
2023-04-07 12:55:41
56
转载 [硕士研究生研究方向]P4编程语言库 core.p4 和 v1model.p4 源代码
core.p4/*Copyright 2013-present Barefoot Networks, Inc.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/l
2021-03-31 20:30:07
2100
23
转载 [硕士研究生研究方向]《Euclid:一种基于P4的全网内实时DDoS攻击检测与防御方法》P4代码
ddosm.p4#include <v1model.p4>#include <core.p4>#include "parser.p4"#define ALARM_SESSION 250#define CS_WIDTH 1280// To enable debugging, uncomment the following line. #define DR_DEBUG 1// Defense Readiness State#define DR_SAFE 0#d
2021-03-31 19:54:03
1297
12
翻译 [硕士研究生研究方向]P4_16_官方文档翻译
由于学习研究需要,接下来可能还会继续翻译一下P4runtime,希望早点出成果早点达到毕业条件8,加油加油!以下给出翻译文档的百度云链接:链接:https://pan.baidu.com/s/1wwWat1w2jxfl68erupe2ng提取码:aa35当然也可以从我的博客文件资源里面免费下载。“你只有非常努力,才能看起来毫不费力”...
2021-03-09 15:47:04
605
5
原创 [硕士研究生研究方向]P4可编程数据平面环境搭建
P4语言编程环境搭建有一说一这环境是我有史以来花了巨多时间还没有靠自己搭出来的环境,从网上看了巨多教程,bug也处理了,代理也挂了,官网的教程也看了,就是不停的报错报错报错。。。。。然后前几天偶然发现一个GitHub的链接,按照脚本文件终于是把需要的文件都搭上了,就是下面这个:p4-guide:https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md在跑教程之前我自己装了cmak
2021-01-13 14:28:36
1877
15
转载 数据仓库专题18-数据建模语言IDEF(转载)
转载:link1引言IDEF的含义是集成计算机辅助制造(Integrated Computer-AidedManufacturing,ICAM)DEFinition。最初的IDEF方法是在美国空军ICAM项目建立的,最初开 发3种方法:功能建模(IDEF0)、信息建模(IDEF1)、动态建模(IDEF2),后来,随着信息系统的相继开发,又开发出了下列IDEF族方法: 数据建模(IDEF1X)...
2020-04-24 21:57:22
368
原创 【记录学习】C语言数据结构实现一些常见查找
本篇代码主要用来实现各种常见查找方式:目前仅实现——顺序查找、折半查找。。。能力有限,后续学会新的再继续更新!以下是代码实现:# include <stdio.h># include <malloc.h># include <stdlib.h>//本篇代码主要用来实现各种常见查找方式:目前仅实现——顺序查找、折半查找。。。typedef stru...
2019-12-14 22:19:25
185
原创 【记录学习】C语言数据结构实现一些常见排序
本篇代码包括:直接插入排序、折半插入排序、希尔插入排序、冒泡排序、快速排序、简单选择排序、2路归并排序实现代码如下:# include <stdio.h># include <malloc.h># include <stdlib.h>//内部排序/*本篇代码包括:直接插入排序、折半插入排序、希尔插入排序、冒泡排序、快速排序、简单选择排序、2路归并排...
2019-12-14 22:13:31
138
原创 【记录学习】C语言数据结构静态模拟二叉树并分别先序、中序、后序、层次遍历
以下是实现静态模拟二叉树并分别先序、中序、后序遍历的代码自己画的二叉树图_(:3」∠)_如下:# include <stdio.h># include <malloc.h># include <stdlib.h>//静态模拟二叉树//并分别构造先序、中序、后序函数遍历typedef struct BinaryTree//二叉树结构体{ c...
2019-11-22 21:07:58
214
原创 【记录学习】C语言数据结构使用递归解决汉诺塔问题(移动步骤)
使用递归解决汉诺塔问题(移动步骤)以下是代码# include <stdio.h>//# include <math.h>//使用递归实现解决汉诺塔问题void towerOfHanoi(int,char,char,char);//实现返回汉诺塔问题的移动步骤//int towerOfHanoiCount(int);//实现返回汉诺塔问题需要移动多少次/...
2019-11-21 21:28:11
513
原创 【记录学习】C语言数据结构使用数组实现简单循环队列
以下是实现使用数组实现简单循环队列的代码# include <stdio.h># include <malloc.h># include <stdlib.h>typedef struct Queue{ int * pBase; int front; int rear;} Queue, * PQueue;void init_Queue(PQ...
2019-11-21 21:24:48
212
原创 【记录学习】C语言数据结构-使用链表简单实现栈
以下是链表简单实现栈数据结构的代码# include <stdio.h># include <malloc.h># include <stdlib.h>typedef struct Node{ int data; struct Node * pNext;} Node, * PNode;typedef struct Stack{ PNod...
2019-11-19 21:46:41
219
原创 【记录学习】C语言版数据结构实现简单链表功能
以下是实现简单链表功能的代码# include <stdio.h># include <malloc.h># include <stdlib.h>typedef struct Node{ int data;//数据域 struct Node * pNext;//指针域} Node, * PNode;//Node等价于struct Node ...
2019-11-18 22:33:41
116
原创 【记录学习】C语言版数据结构实现数组
以下是实现数组功能的代码# include <stdio.h># include <malloc.h>//malloc函数# include <stdlib.h>//exit函数//定义了一个数据类型,该数据类型的名字叫做struct Arr, 该数据类型含有三个成员,分别是pBase, len, cntstruct Arr{ int * pBa...
2019-11-17 10:57:40
266
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人