- 博客(3)
- 收藏
- 关注
原创 反转链表(c++实现)
反转链表(c++实现) 节点描述 template <class T> class ListNode{ //将节点内的元素设为私有,与外界隔离 private: T data; ListNode<T> *next; //定义链表类可以访问私有变量 friend class List<T>; }; 链表类(内部函数省略) ...
2020-03-08 21:18:22
785
原创 1001 A+B Format (20分)
1001 A+B Format 1001 A+B Format (20分) Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits...
2020-02-18 18:34:34
153
原创 PAT 1014 福尔摩斯的约会
PAT 1014 福尔摩斯的约会 `大侦探福尔摩斯接到一张奇怪的字条:我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间星期四 14:04,因为前面两字符串中第 1 对相同的大写英文字母(大小写有区分)是第 4 个字母 D,代表星期四;第 2 对相同的字符...
2020-02-17 00:22:33
149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人