- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 数据结构与算法[LeetCode]—删除链表中重复的数
Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2->
2013-11-27 11:33:13 691
原创 数据结构与算法[LeetCode]—找出N个节点的BST的所有形态组合
Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1
2013-11-21 15:50:52 1366
原创 数据结构与算法[LeetCode]—数组中出现次数异与其他数的一个数
Single NumberGiven an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement i
2013-11-13 15:00:35 821
原创 数据结构与算法[LeetCode]—Linked List Cycle 确定单链表是否有环,并找出第一个环结点
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解决思路:使用快慢指针,一个步长为2,一个步长为1,如果快指针遇到NULL,则链表没有环。如果两指
2013-11-12 16:17:12 1207
原创 数据结构与算法[LeetCode]—N_Queen问题
问题N-QueenThe n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions t
2013-11-03 21:31:33 1114
[Python]—Linux Server 系统监控程序
2014-07-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人