摘要:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: But the fol 阅读全文
posted @ 2016-04-20 11:10
ArgenBarbie
阅读(447)
评论(0)
推荐(0)
摘要:
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note:A solution using O(n) space i 阅读全文
posted @ 2016-04-20 10:54
ArgenBarbie
阅读(339)
评论(0)
推荐(0)
摘要:
http://blog.jobbole.com/75656/ 原型:void* malloc(size_t size); 功能:在系统中分配一段连续的可用的内存。 要求: malloc分配的内存大小至少为size参数所指定的字节数 malloc的返回值是一个指针,指向一段可用内存的起始地址 多次调用 阅读全文
posted @ 2016-04-20 10:01
ArgenBarbie
阅读(365)
评论(0)
推荐(0)
摘要:
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 = "aabcc",s2 = "dbbca", When s3 = "aadbbcbcac", ret 阅读全文
posted @ 2016-04-20 00:02
ArgenBarbie
阅读(296)
评论(0)
推荐(0)