小小程序媛  
得之坦然,失之淡然,顺其自然,争其必然

2015年11月9日

摘要: 题目Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes’ ... 阅读全文
posted @ 2015-11-09 14:40 Coding菌 阅读(188) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.分析求解一个二维平面上所有点中,位于同一直线上的最多点数。首先想到的算法就是首先... 阅读全文
posted @ 2015-11-09 13:24 Coding菌 阅读(158) 评论(0) 推荐(0) 编辑