- 博客(64)
- 资源 (4)
- 收藏
- 关注
原创 EPI: hash tables
A hash table is a data structure used to implement the associative array, a structure that can map keys to values.
2014-07-20 16:58:10 628
原创 Leetcode优化:Convert a binary tree to linked list
Flatten Binary Tree to Linked List
2014-07-17 21:00:57 618
原创 Leetcode优化:Construct Binary Search Tree
1.Convert Sorted List to Binary Search Tree
2014-07-17 13:59:48 707
原创 Python入门
Python Syntax --Variables --Data types, such as numbers and booleans (True or False) --Whitespace (structure the code) --Comment (单行# 多行’’’ ‘’’) --Math operatio
2014-06-11 15:46:05 638
原创 PHP入门
IntroductionTo PHP -- PHP is a programming language that doall sorts of things -- PHP包含在中 -- PHP语句后面要加分号;语法更多的像C -- Echo函数输出字符等有效表达式, echo “hahaha”; echo 3+5; -- 字符串一般都用双引
2014-06-11 15:37:19 580
原创 图解TCP/IP
1. 逻辑意义上的端口划分 1)按端口号分布划分 0-1023 知名端口: 21:ftp 22:SSH 23:Telnet 25:SMTP 53:DNS 80:HTTP 135:RPC(远程过程调用) 1024-65535 动态端口 2)按协议类型分类 TCP端口:FTP21 Telnet23 SMTP25 HTTP80 UDP端口:DNS5
2014-06-11 15:25:46 681
原创 Leetcode中的intervals
题目一:Merge IntervalsGiven a collection of intervals, merge all overlapping inter
2014-05-25 20:40:49 537
原创 Leetcode中几道二叉树题 III
三、树的层次/序列化题目六:Populating Next Right Pointers in Each NodeGiven a binary tree, populating each next pointer to pointer to its right node. If there is no next right node, the next pointer should be
2014-05-25 19:46:24 459
原创 Leetcode中几道二叉树题 II
三、平衡二叉树 (Balanced Binary Tree)题目九:Balanced Binary TreeGiven a binary tree, determine if it is height-balanced. For this problem, a height-balanced tree is defined as a binary tree in which the dep
2014-05-25 19:44:27 485
原创 Leetcode中几道二叉树题 I
二叉树的题很多,但是大多都能用递归的方法解决。一、有序数组或链表转换成BST题目一:Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to height balanced BST
2014-05-25 19:24:44 595
原创 Leetcode中一维数组与应用II
一、最大序列题目一:Gas StationThere are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with unlimited gas tank and it cost cost[i] of gas to travel f
2014-05-22 21:25:27 523
转载 leetcode difficulty and frequency distribution chart
Here is a difficulty and frequency distribution chart for each problem (which I got from the Internet and is very useful).Dynamic ProgrammingEdit DistanceMaximum SubarrayMinimum Path SumUniq
2014-05-13 20:51:20 972
转载 Binary search and its variation
1. IntroductionWriting correct programs is not an easytask, especially for some problems that require particularly careful code, likebinary search. Knuth points out that while the first binary sea
2014-04-27 13:47:32 566
原创 C/C++动态存储器分配
1. mmap和munmapmmap将一个文件或者其它对象映射进内存。文件被映射到多个页上,如果文件的大小不是所有页的大小之和,最后一个页不被使用的空间将会清零。
2014-04-26 12:27:39 748
转载 df、du、fdisk:Linux磁盘管理三板斧的使用心得
源地址1.dfdf命令可以获取硬盘被占用了多少空间,目前还剩下多少空间等信息,它也可以显示所有文件系统对i节点和磁盘块的使用情况。df命令各个选项的含义如下: -a:显示所有文件系统的磁盘使用情况,包括0块(block)的文件系统,如/proc文件系统。 -k:以k字节为单位显示。 -i:显示i节点信息,而不是磁盘块。 -t:显示各指定类型的文件系统的磁盘
2014-04-25 17:35:09 4078
MySQL默认字符字符集描述问题
2010-05-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人