C++中,申请字符串数组可用new实现:char ** list = new 
char*[MAX_NUM];for (int i = 0; i,则通过 if (list[qid] != “”) 检测是否初始化。
                            
                            
                                分类:
编程语言   时间:
2014-05-01 11:46:12   
                                阅读次数:
587
                             
                    
                        
                            
                            
                                原题地址:http://oj.leetcode.com/problems/linked-list-cycle/题意:判断链表中是否存在环路。解题思路:快慢指针技巧,slow指针和fast指针开始同时指向头结点head,fast每次走两步,slow每次走一步。如果链表不存在环,那么fast或者fast...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 10:33:38   
                                阅读次数:
426
                             
                    
                        
                            
                            
                                一、菜单数据表中的存储结构 二、转换后的数据结构 三、 转换过程 1、确定菜单数据的最大级别 
/// /// 获得Nature定义的最大目录级别,以便于确定Nature的DataTable表结构中的列数目 /// /// ...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 09:35:12   
                                阅读次数:
393
                             
                    
                        
                            
                            
                                本来大一下册的时候学过《数据结构》,只怪自己太无知,除了能够理解基本概念外其他的一无所知,上课也算是在坐飞机吧。无奈,现在大二又来看看,复习复习。不求深入的理解只求把书读薄吧。数据结构是一门研究非数值计算的程序设计问题中的操作对象,以及它们之间的关系和操作等相关问题的科学。基本概念和术语: 
数据:....
                            
                            
                                分类:
其他好文   时间:
2014-05-01 09:17:05   
                                阅读次数:
305
                             
                    
                        
                            
                            
                                原题地址:http://oj.leetcode.com/problems/linked-list-cycle-ii/题意:如果链表中存在环路,找到环路的起点节点。解题思路:这道题有点意思。首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。具体技巧参见上一篇http://w...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 08:19:31   
                                阅读次数:
340
                             
                    
                        
                            
                            
                                Java 115 Java Interview Questions and Answers – 
The ULTIMATE List 3 Good Reasons to Avoid Arrays in Java Interfaces Other Top 10 
Algorithms for Coding...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 08:02:00   
                                阅读次数:
318
                             
                    
                        
                            
                            
                                原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/题意:将链表中的节点两两交换。Given1->2->3->4, 
you should return the list as2->1->4->3.解题思路:这题主要涉及到链表的操作,没什么...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 06:44:21   
                                阅读次数:
339
                             
                    
                        
                            
                            
                                原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given 
a linked list, remove thenthnode from the end of list and return its he...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 06:42:15   
                                阅读次数:
332
                             
                    
                        
                            
                            
                                题目链接Given a list, rotate the list to the right 
bykplaces, wherekis non-negative.For 
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.首...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 04:52:19   
                                阅读次数:
288