摘要:
题目:Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only one letter... 阅读全文
posted @ 2014-08-05 23:46
爱做饭的小莹子
阅读(5359)
评论(2)
推荐(0)
摘要:
题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partition... 阅读全文
posted @ 2014-08-05 11:40
爱做饭的小莹子
阅读(5652)
评论(5)
推荐(2)
摘要:
题目:Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level ... 阅读全文
posted @ 2014-08-05 03:16
爱做饭的小莹子
阅读(3600)
评论(0)
推荐(0)
摘要:
题目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).F... 阅读全文
posted @ 2014-08-05 03:09
爱做饭的小莹子
阅读(2201)
评论(0)
推荐(0)
摘要:
题目:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree... 阅读全文
posted @ 2014-08-05 03:01
爱做饭的小莹子
阅读(3462)
评论(0)
推荐(0)
摘要:
题目: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... 阅读全文
posted @ 2014-08-05 02:54
爱做饭的小莹子
阅读(3520)
评论(0)
推荐(0)

浙公网安备 33010602011771号