摘要: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).Write a function to determine if a number is... 阅读全文
posted @ 2016-01-06 06:58 Hygeia 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl... 阅读全文
posted @ 2016-01-06 06:52 Hygeia 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, findkvalues in the BST that are closest to the target.Note:Given target value is a floating p... 阅读全文
posted @ 2016-01-06 06:35 Hygeia 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.public class Solution { public int... 阅读全文
posted @ 2016-01-06 06:24 Hygeia 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree and a node in it, find the in-order successor of that node in the BST.Note: If the given node has no in-order successor in ... 阅读全文
posted @ 2016-01-06 04:12 Hygeia 阅读(189) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-01-06 03:31 Hygeia 阅读(16) 评论(0) 推荐(0) 编辑