• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ArgenBarbie
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年4月20日
101. Symmetric Tree -- 判断树结构是否对称
摘要: 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)
99. Recover Binary Search Tree -- 找到二叉排序树中交换过位置的两个节点
摘要: 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)
malloc的实现
摘要: http://blog.jobbole.com/75656/ 原型:void* malloc(size_t size); 功能:在系统中分配一段连续的可用的内存。 要求: malloc分配的内存大小至少为size参数所指定的字节数 malloc的返回值是一个指针,指向一段可用内存的起始地址 多次调用 阅读全文
posted @ 2016-04-20 10:01 ArgenBarbie 阅读(365) 评论(0) 推荐(0)
97. Interleaving String *HARD* -- 判断s3是否为s1和s2交叉得到的字符串
摘要: 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)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3