摘要:
第一次搭建Apache+PHP+MySQL的开发环境,发现Apache与PHP的整合非常麻烦,先整理记录如下: 一、安装Apache 1.登录http://httpd.apache.org/download.cgi 2.如图所示,选择某个版本的 “Files for Microsoft Window 阅读全文
摘要:
题目描述: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra sp 阅读全文
摘要:
题目描述: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k 阅读全文
摘要:
题目描述: Given a linked list, swap every two adjacent nodes and return its head. 解题分析: 解题思路很简单,就是先两两扫描,然后调换顺序即可。这道题的难点在于每个节点的next域指向问题,所以解这样的题最好可以在纸上写一下交 阅读全文
摘要:
题目描述: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 解题分析: 解题思路很简单,就是先两两排序,不断减小链表数量,最后将所有数组织成一个有序链 阅读全文
摘要:
题目描述: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 解题分析: 这类题一般都要用递归的方法来解决。需要设两个集合类分别存储待匹配的( 阅读全文
摘要:
题目描述: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 解题 阅读全文