摘要:
题目: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The l 阅读全文
posted @ 2015-11-28 23:56
YRB
阅读(2527)
评论(0)
推荐(0)
摘要:
题目: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikip 阅读全文
posted @ 2015-11-28 22:30
YRB
阅读(1915)
评论(2)
推荐(0)
摘要:
题目: Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 链接: http://leetcode.com/proble 阅读全文
posted @ 2015-11-28 11:07
YRB
阅读(249)
评论(0)
推荐(0)
摘要:
题目:Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Retur... 阅读全文
posted @ 2015-11-28 10:40
YRB
阅读(669)
评论(0)
推荐(0)

浙公网安备 33010602011771号