![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 61
卿与
博览而约取,厚积而薄发
展开
-
【Hackerrank】Array Manipulation
Devendra在9号云上看到了他的教练朝他微笑。 每次教授选出Devendra单独问他一个问题,Devendra朦胧的头脑里全是他的教练和她的微笑,以至于他无法专注于其他事情。帮助他解决这个问题:原创 2021-04-11 16:58:27 · 285 阅读 · 0 评论 -
链表每隔k个元素反转
字节跳动面试时 手写代码。原创 2021-04-10 21:48:24 · 796 阅读 · 0 评论 -
数据结构-串KMP算法
LeetCode 28 KMP算法。Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.原创 2020-07-31 21:41:34 · 143 阅读 · 0 评论 -
数据结构-栈和队列
利用两个站S1,S2来模拟一个队列原创 2020-07-28 21:21:06 · 105 阅读 · 0 评论 -
数据结构-顺序表10
设将n(n> 1)个整数存放到一维数组R中。设计一个在时间和空间两方面都尽可能高效的算法。将R中保存的序列循环左移p(0<p<n)个位置,原创 2020-07-06 21:42:25 · 357 阅读 · 0 评论 -
数据结构-顺序表8
已知一维数组A[m+n]中依次存放两个线性表($a_1,a_2,...,A_m$)和($b_1,b_2,...,b_n$)。将数组中两个顺序表的位置交换,即将($b_1,b_2,...,b_n$)放在($a_1,a_2,...,A_m$)前面。编程解决该问题。原创 2020-07-06 21:02:43 · 165 阅读 · 0 评论 -
数据结构-顺序表基本结构
顺序表的基本结构和一些常用操作。原创 2020-07-05 16:48:06 · 211 阅读 · 0 评论 -
leetcode 19. 删除链表的倒数第N个节点
LeetCode 19. 删除链表的倒数第N个节点给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。原创 2020-02-09 22:18:12 · 157 阅读 · 0 评论 -
P1198 [JSOI2008]最大数
题目描述 传送门现在请求你维护一个数列,要求提供以下两种操作:1、 查询操作。语法:Q L功能:查询当前数列中末尾L个数中的最大的数,并输出这个数的值。限制:LLL不超过当前数列的长度。(L>0)(L > 0)(L>0)2、 插入操作。语法:A n功能:将nnn加上ttt,其中ttt是最近一次查询操作的答案(如果还未执行过查询操作,则t=0t...原创 2019-09-06 14:01:17 · 136 阅读 · 0 评论 -
E. Two Teams
E. Two Teamstime limit per test2 secondsmemory limit per test256 megabytesThere arennstudents standing in a row. Two coaches are forming two teams — the first coach chooses the first team ...原创 2019-04-17 22:07:32 · 457 阅读 · 0 评论 -
D. Glider
D. Glider time limit per test 2 seconds memory limit per test ...转载 2018-09-18 19:59:11 · 351 阅读 · 0 评论