会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LYL
Nothing is impossible
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2020年8月8日
1017 Queueing at Bank (25分)模拟:关于事务排队处理
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805491530579968 题意 银行M个窗口,N个人来办事,几点到,每个人需要的处理时间 问平均等待时间(17点后到不处理~) Sample Input: 7 3
阅读全文
posted @ 2020-08-08 14:22 liuyongliu
阅读(131)
评论(0)
推荐(0)
2020年8月4日
1014 Waiting in Line (30分)队列模拟题
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805498207911936 题意 N个窗口,K个人去办事,每个窗口黄线内可容纳M个人,黄线外排一对,问每个人的完成时间 Sample Input: 2 2 7 5 1
阅读全文
posted @ 2020-08-04 19:51 liuyongliu
阅读(115)
评论(0)
推荐(0)
2020年8月2日
1010 Radix (25分)暴力猜数or二分猜数
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805507225665536 题意 直接解释样例 数"6"是10进制,猜数"110"的进制数,使得6==110 数"1"是2进制,猜数"ab"的进制数,使得1==ab
阅读全文
posted @ 2020-08-02 23:43 liuyongliu
阅读(164)
评论(0)
推荐(0)
1098. Insertion or Heap Sort (25)堆排序模拟
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805368847187968 题意 给出n和n个数的序列a和b,a为原始序列,b为排序其中的一个步骤,问b是a经过了堆排序还是插入排序的,并且输出它的下一步 Sampl
阅读全文
posted @ 2020-08-02 13:32 liuyongliu
阅读(129)
评论(0)
推荐(0)
2020年8月1日
1074 Reversing Linked List (25分)
摘要: 题目:1074 Reversing Linked List (25分) 题意 给N个链表结点,以及K,对每K个长度的链表做逆置,输出逆置后的链表。 Sample Input: 00100 6 4 00000 4 99999 00100 1 12309 68237 6 -1 33218 3 00000
阅读全文
posted @ 2020-08-01 23:14 liuyongliu
阅读(160)
评论(0)
推荐(0)
拼题A集合
摘要: 链表 02-线性结构3 Reversing Linked List (25分)(链表每段反转) 1052 Linked List Sorting (25分) 1074 Reversing Linked List (25分) 树 03-树1 树的同构 (25分) 03-树3 Tree Traversa
阅读全文
posted @ 2020-08-01 00:41 liuyongliu
阅读(759)
评论(0)
推荐(0)
1052 Linked List Sorting (25分)链表排序(不需要模拟链表操作)
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805425780670464 题意 给出链表每个结点信息 address key next 按key排序再输出 Sample Input: 5 00001 11111
阅读全文
posted @ 2020-08-01 00:30 liuyongliu
阅读(138)
评论(0)
推荐(0)
2020年5月13日
Jupyter-notebook python2 3共存
摘要: 如何解决python2&python3中jupyter notebook共存问题 jupyter notebook在python2和python3下启动方法 python2 C:\Python\Python27\Scripts\jupyter-notebook.exe python3 C:\Pyth
阅读全文
posted @ 2020-05-13 18:27 liuyongliu
阅读(220)
评论(0)
推荐(0)
2020年3月11日
02-线性结构3 Reversing Linked List (25分)(链表每段反转)
摘要: 02-线性结构3 Reversing Linked List (25分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. Fo
阅读全文
posted @ 2020-03-11 22:45 liuyongliu
阅读(275)
评论(0)
推荐(0)
2020年3月9日
04-树4 是否同一棵二叉搜索树 (25分) 二叉搜索树的构造
摘要: 04-树4 是否同一棵二叉搜索树 (25分) 给定一个插入序列就可以唯一确定一棵二叉搜索树。然而,一棵给定的二叉搜索树却可以由多种不同的插入序列得到。例如分别按照序列{2, 1, 3}和{2, 3, 1}插入初始为空的二叉搜索树,都得到一样的结果。于是对于输入的各种插入序列,你需要判断它们是否能生成
阅读全文
posted @ 2020-03-09 17:42 liuyongliu
阅读(197)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告