摘要: 题目地址:https://pintia.cn/problem-sets/15/problems/726 计算链表长度,注意特判空链表的情况 int Length(List L) { if(!L) return 0;//特判空链表 int len = 1;cout<<L->Data<<endl; wh 阅读全文
posted @ 2019-09-02 22:03 mile-star 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 题目地址https://pintia.cn/problem-sets/15/problems/923 就是二分查找裸题,把程序读清楚就差不多了。 本地写的补全的裁判程序 // //code by mile //compiled by clion //no bug //Always get ACCEP 阅读全文
posted @ 2019-09-02 20:34 mile-star 阅读(1464) 评论(0) 推荐(0) 编辑