![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
链表
诠释你的Mr贾
这个作者很懒,什么都没留下…
展开
-
LeetCode 92 反转链表II 链表
原题链接/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(原创 2021-03-18 20:30:18 · 55 阅读 · 0 评论 -
Broken Keyboard UVA - 11988 链表
Broken Keyboard UVA - 11988添加链接描述注意:1.char text[]尚未赋值之前都是’\0’,strlen从当前字符开始算,直到末尾,但是不包括末尾的’\0’2.strlen 不要放在for循环里面,否则会超时#include<iostream>#include<algorithm>#include<string.h>using namespace std;int last;int cur; //cur记录当前字符要插原创 2021-01-19 22:36:51 · 74 阅读 · 0 评论