摘要: 题目描述 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k t 阅读全文
posted @ 2017-05-27 13:44 qqky 阅读(193) 评论(0) 推荐(0) 编辑
摘要: [编程题] 消除重复元素 时间限制:1秒 空间限制:32768K 小易有一个长度为n序列,小易想移除掉里面的重复元素,但是小易想是对于每种元素保留最后出现的那个。小易遇到了困难,希望你来帮助他。 输入描述: 输入包括两行: 第一行为序列长度n(1 ≤ n ≤ 50) 第二行为n个数sequence[ 阅读全文
posted @ 2017-05-27 11:07 qqky 阅读(237) 评论(0) 推荐(0) 编辑