把一个人一个月的轨迹历史描绘出来,并实现按时间顺序回放。小弟菜鸟一枚,代码质量不高,高手勿喷,谢谢。关于描点和描线,百度地图都有自己的API,大家都应该会了;至于播放动画,肯定不止一种方法,如果大家有好的方法,分享出来,小弟感激不尽。我的方法是:在一个线程里,开始播放后,遍历存放item的list,...
                            
                            
                                分类:
移动开发   时间:
2014-05-06 00:37:01   
                                阅读次数:
473
                             
                    
                        
                            
                            
                                Mergeksorted linked lists and return it as one 
sorted list. Analyze and describe its complexity.想法很简单,就是两两合并。在Merge Two Sorted 
Lists这道题已经实现了两两合并的代码了,就...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 00:22:01   
                                阅读次数:
337
                             
                    
                        
                            
                            
                                周末折腾一下Ubuntu 14.04,稍作记录:1. 切换源,我还是钟情163的(ps, 
这里如果用的以前13.04时候163的源会有问题,记得配置最新的)$ sudo cp /etc/apt/sources.list 
/etc/apt/sources.list.origin$ sudo gedit...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 00:13:19   
                                阅读次数:
376
                             
                    
                        
                            
                            
                                1、扩展BaseExpandableListAdapter实现ExpandableListAdapter2、使用SimpleExpandableListAdapter将两个List集合包装成ExpandableListAdapter3、使用SimpleCursorTreeAdapter将Cursor...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 23:43:51   
                                阅读次数:
280
                             
                    
                        
                            
                            
                                1.[root@rusky ]# vi list 
#如果testfile不存在,则vi会自动创建一个名为testfile的文件,并在Vi打开该文件等待用户输入内容。2.[root@rusky ]# ls -l 
>listfile #利用重定向,将ls -l 的执行结果输出到新文件listfile.....
                            
                            
                                分类:
其他好文   时间:
2014-05-05 23:21:35   
                                阅读次数:
381
                             
                    
                        
                            
                            
                                遇到的问题:input{1,1,1}, output{1,1}, expected{1}, 
原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next, 
这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:47:08   
                                阅读次数:
454
                             
                    
                        
                            
                            
                                Link:http://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked 
list, reverse the nodes of a linked listkat a time and return its modifie...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:46:42   
                                阅读次数:
456
                             
                    
                        
                            
                            
                                Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked 
list from positionmton. Do it in-place and in one-pass.For example:Given1...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:46:11   
                                阅读次数:
411
                             
                    
                        
                            
                            
                                Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, 
swap every two adjacent nodes and return its head.For example,Given1->2-...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:45:37   
                                阅读次数:
331
                             
                    
                        
                            
                            
                                列表推导式(list 
comprehension)是利用其他列表创建新列表(类似于数学术语中的集合推导式)的一种方法。它的工作方式类似于for循环,也很简单:In [39]: 
[x*x for x in range(10)]Out[39]: [0, 1, 4, 9, 16, 25, 36, 49, ...
                            
                            
                                分类:
编程语言   时间:
2014-05-05 22:21:48   
                                阅读次数:
422