上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 33 下一页
摘要: 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) 编辑
摘要: Given a binary tree, count the number of uni-value subtrees.A Uni-value subtree means all nodes of the subtree have the same value.For example:Given b... 阅读全文
posted @ 2016-01-05 08:37 Hygeia 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe... 阅读全文
posted @ 2016-01-05 05:13 Hygeia 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2016-01-04 10:45 Hygeia 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific target number.The function t... 阅读全文
posted @ 2016-01-04 07:26 Hygeia 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 33 下一页