上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea... 阅读全文
posted @ 2012-11-06 15:58 程序员杰诺斯 阅读(144) 评论(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... 阅读全文
posted @ 2012-11-06 15:30 程序员杰诺斯 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / ... 阅读全文
posted @ 2012-11-06 12:01 程序员杰诺斯 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit.... 阅读全文
posted @ 2012-11-06 11:07 程序员杰诺斯 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 题为:股票最佳买卖时机Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to co... 阅读全文
posted @ 2012-11-05 23:55 程序员杰诺斯 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets i... 阅读全文
posted @ 2012-11-05 20:42 程序员杰诺斯 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in... 阅读全文
posted @ 2012-11-05 17:56 程序员杰诺斯 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.先查了一下单词,意思是单词重排, abc ... 阅读全文
posted @ 2012-11-05 17:05 程序员杰诺斯 阅读(156) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes c... 阅读全文
posted @ 2012-11-05 15:01 程序员杰诺斯 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".思路: 对齐, 计算当前位和进位; ... 阅读全文
posted @ 2012-11-05 13:59 程序员杰诺斯 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页