摘要: 问题描述:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->... 阅读全文
posted @ 2014-08-01 22:31 lequ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 问题描述:Given a list, rotate the list to the right by k places, where k is non-negative.For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5-... 阅读全文
posted @ 2014-07-30 14:19 lequ 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 随机挑选一题试试手气。问题描述:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100, 4, 200, 1, ... 阅读全文
posted @ 2014-07-24 16:07 lequ 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 注册了leetcode账号,一共有150道题,准备有时间就刷一刷,许久没有编程了,C++早已生疏。目前leetcode也支持Python了,俺们还是先练练C++。先找个简单的开始,随便挑了一个AC率稍微高点的题"Two Sum"。Two Sum https://oj.leetcode.com/pro... 阅读全文
posted @ 2014-07-23 17:09 lequ 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 每天记录和分享学习工作生活的点点滴滴,发现和分享编程的乐趣。主要关注C++、Python、JavaScript、iOS、Android、游戏开发等相关技术。坚持就是胜利。 阅读全文
posted @ 2014-07-21 10:21 lequ 阅读(136) 评论(1) 推荐(0) 编辑