上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 87 下一页
摘要: https://leetcode.com/problems/remove-duplicates-from-sorted-list/ Given a sorted linked list, delete all duplicates such that each element appear only 阅读全文
posted @ 2018-11-27 15:54 丧心病狂工科女 阅读(118) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805264706813952 给定一段一段的绳子,你需要把它们串成一条绳。每次串连的时候,是把两段绳子对折,再如下图所示套接在一起。这样得到的绳子又被当成是另一段绳子,可以再 阅读全文
posted @ 2018-11-27 13:17 丧心病狂工科女 阅读(163) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805262953594880 给定一个单链表,请编写程序将链表元素进行分类排列,使得所有负值元素都排在非负值元素的前面,而 [0, K] 区间内的元素都排在大于 K 的元素前 阅读全文
posted @ 2018-11-27 12:50 丧心病狂工科女 阅读(345) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805296180871168 给定一个常数 K 以及一个单链表 L,请编写程序将 L 中每 K 个结点反转。例如:给定 L 为 1→2→3→4→5→6,K 为 3,则输出应该 阅读全文
posted @ 2018-11-27 11:46 丧心病狂工科女 阅读(413) 评论(0) 推荐(1) 编辑
摘要: https://ac.nowcoder.com/acm/contest/96/E?&headNav=www&headNav=acm 题目描述 AA的欧尼酱qwb是个考古学家,有一天qwb发现了只白白圆圆小小的木乃伊,它是个爱哭鬼却很努力。qwb想把这么可爱的小木乃伊送给 AA,于是便找上了快递姐姐, 阅读全文
posted @ 2018-11-26 12:47 丧心病狂工科女 阅读(211) 评论(0) 推荐(0) 编辑
摘要: A https://ac.nowcoder.com/acm/contest/283/A #include<stdio.h> int main() { for(int i=0;i<90;i++) printf("Ninety for GXU, First for gxuacm\n"); return 阅读全文
posted @ 2018-11-26 12:20 丧心病狂工科女 阅读(421) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/merge-intervals/ Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 代码: 那个 $sort$ 排 阅读全文
posted @ 2018-11-25 16:46 丧心病狂工科女 阅读(105) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/combinations/ Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: 代码: 写一会 阅读全文
posted @ 2018-11-25 16:17 丧心病狂工科女 阅读(139) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/subsets-ii/ Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power s 阅读全文
posted @ 2018-11-24 23:42 丧心病狂工科女 阅读(97) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/plus-one/ Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are 阅读全文
posted @ 2018-11-24 22:59 丧心病狂工科女 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 87 下一页