随笔分类 - 数据结构
摘要:1.题目分析 Given a linked list, remove the nth node from the end of list and return its head. For example, ...
阅读全文
摘要:1.题目描述http://poj.org/problem?id=10022.解题过程按部就班来解题的话,这个题目很容易写出来,这是我的第一个版本的代码,思路是读入一行电话字符串,均转化为整型数字存入vector结构,然后进行排序,顺序统计即可发现重复的电话号码及次数。 1: /*author :lipan 2: date: 2013.7.23 3: email: areslipan@163.com 4: */ 5: 6: #include 7: #include 8: #include 9: #include 10: #include ...
阅读全文