文章 2023-06-19 来自:开发者社区

【PAT甲级 - C++题解】1133 Splitting A Linked List

1133 Splitting A Linked ListGiven a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all the values in [0, K]....

文章 2023-06-19 来自:开发者社区

【PAT甲级 - C++题解】1097 Deduplication on a Linked List

1097 Deduplication on a Linked ListGiven a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only th....

文章 2023-06-19 来自:开发者社区

【PAT甲级 - C++题解】1074 Reversing Linked List

1074 Reversing Linked ListGiven a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K=3, then you must ....

文章 2023-06-18 来自:开发者社区

【PAT甲级 - C++题解】1083 List Grades

1083 List GradesGiven a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of ....

文章 2023-06-18 来自:开发者社区

【PAT甲级 - C++题解】1047 Student List for Course

1047 Student List for CourseZhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student name lists....

文章 2023-06-17 来自:开发者社区

【PAT甲级 - C++题解】1052 Linked List Sorting

1052 Linked List SortingA linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the....

文章 2023-06-17 来自:开发者社区

【PAT甲级 - C++题解】1039 Course List for Student

1039 Course List for StudentZhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course lis....

文章 2023-06-17 来自:开发者社区

【PAT甲级 - C++题解】1028 List Sorting

1028 List SortingExcel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case, the first lin....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注