
C++代码(转载)
freshare
现任江苏省环境信息系统工程技术研究中心主任,拥有丰富的项目管理经验,并兼顾团队建设及市场开拓,具有较高的进度控制、资源协调、成本管理和技术管理水平。专业领域方面对于环境监测、电子政务等都有着较深入的研究和实际项目经验,多次担任大型项目的负责人。
展开
-
微软面试技术题
1、反转一个链表。循环算法。 List reverse(List l) { if(!l) return l; list cur = l.next; list pre = l; list tmp; pre.next = null; while ( cur ) { tmp = cur; cur = cur.next; tmp.next = pre pre = tmp; } return tmp; }转载 2006-11-16 14:44:00 · 1717 阅读 · 0 评论 -
Finding a Loop in a Singly Linked List
MotivationA singly linked list is a common data structure familiar to all computer scientists. A singly linked list is made of nodes where each node has a pointer to the next node (or null to end th转载 2006-11-16 14:56:00 · 1816 阅读 · 0 评论