上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 题目 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 阅读(117) 评论(0) 推荐(0)
摘要: 题目 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 阅读(165) 评论(0) 推荐(0)
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805368847187968 题意 给出n和n个数的序列a和b,a为原始序列,b为排序其中的一个步骤,问b是a经过了堆排序还是插入排序的,并且输出它的下一步 Sampl 阅读全文
posted @ 2020-08-02 13:32 liuyongliu 阅读(130) 评论(0) 推荐(0)
摘要: 题目: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 阅读(162) 评论(0) 推荐(0)
摘要: 链表 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 阅读(760) 评论(0) 推荐(0)
摘要: 题目 https://pintia.cn/problem-sets/994805342720868352/problems/994805425780670464 题意 给出链表每个结点信息 address key next 按key排序再输出 Sample Input: 5 00001 11111 阅读全文
posted @ 2020-08-01 00:30 liuyongliu 阅读(140) 评论(0) 推荐(0)
摘要: 如何解决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 阅读(223) 评论(0) 推荐(0)
摘要: 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)
摘要: 04-树4 是否同一棵二叉搜索树 (25分) 给定一个插入序列就可以唯一确定一棵二叉搜索树。然而,一棵给定的二叉搜索树却可以由多种不同的插入序列得到。例如分别按照序列{2, 1, 3}和{2, 3, 1}插入初始为空的二叉搜索树,都得到一样的结果。于是对于输入的各种插入序列,你需要判断它们是否能生成 阅读全文
posted @ 2020-03-09 17:42 liuyongliu 阅读(203) 评论(0) 推荐(0)
摘要: 03-树3 Tree Traversals Again (25分) An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that w 阅读全文
posted @ 2020-03-08 20:11 liuyongliu 阅读(264) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页