摘要: 题目链接 "https://leetcode.com/problems/same tree/" 题目原文 Given two binary trees, write a function to check if they are equal or not. Two binary trees are 阅读全文
posted @ 2016-02-26 19:24 slurm 阅读(151) 评论(0) 推荐(0)
摘要: 题目链接 "https://leetcode.com/problems/recover binary search tree/" 题目原文 Two elements of a binary search tree (BST) are swapped by mistake. Recover the t 阅读全文
posted @ 2016-02-26 19:21 slurm 阅读(218) 评论(0) 推荐(0)
摘要: 题目链接 "https://leetcode.com/problems/validate binary search tree/" 题目原文 Given a binary tree, determine if it is a valid binary search tree (BST). Assum 阅读全文
posted @ 2016-02-26 19:15 slurm 阅读(811) 评论(0) 推荐(0)
摘要: 题目链接 "https://leetcode.com/problems/interleaving string/" 题目原文 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For examp 阅读全文
posted @ 2016-02-26 19:10 slurm 阅读(192) 评论(0) 推荐(0)
摘要: 题目链接 "https://leetcode.com/problems/unique binary search trees/" 题目原文 Given n, how many structurally unique BST's (binary search trees) that store val 阅读全文
posted @ 2016-02-26 19:06 slurm 阅读(294) 评论(0) 推荐(0)