- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 PAT 1098 Insertion or Heap Sort (25)(待修改)
According to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data,
2016-06-15 14:32:55 226
原创 PAT 1097 Deduplication on a Linked List (25)
题目描述Given 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 the first node of which the val
2016-06-10 23:08:50 327
原创 PAT Consecutive Factors (20)
题目描述Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, where 5, 6, and 7 are the three consecutive numbers. No
2016-06-06 16:30:17 567
原创 简谈struct 运算符重载
其实是在做PAT的Cars on Campus (30)这道题,一直想用struct重载做出来,折腾了好久,也不知道问题出在哪里。一:本文要实现的目标 1.定义一个时间的结构体 2.对这个结构体进行struct Inf{ int hh, mm, ss; string inOrOut; Inf(){} Inf(int _hh, int _mm, int _ss)
2016-06-03 16:32:20 13322 1
algo.tar.gz
2020-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人