上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页
摘要: Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp... 阅读全文
posted @ 2015-03-28 15:05 丶Blank 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal... 阅读全文
posted @ 2015-03-22 22:24 丶Blank 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ... 阅读全文
posted @ 2015-03-22 18:07 丶Blank 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa... 阅读全文
posted @ 2015-03-22 14:01 丶Blank 阅读(162) 评论(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 which the depth... 阅读全文
posted @ 2015-03-22 12:07 丶Blank 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le... 阅读全文
posted @ 2015-03-22 00:18 丶Blank 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.https://l... 阅读全文
posted @ 2015-03-21 19:39 丶Blank 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(... 阅读全文
posted @ 2015-03-21 15:31 丶Blank 阅读(207) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2639题目大意是,往背包里赛骨头,求第K优解,在普通01背包的基础上,增加一维空间,那么F[i,v,k]可以理解为前i个物品,放入容量v的背包时,第K优解的值。时间复杂度为O(NVK)。Talk is cheap.... 阅读全文
posted @ 2015-03-17 23:08 丶Blank 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 被排除的文件和文件夹以红色显示了。看着这东西,人一下子就不好了。还好设置可以改回来。Project tab右上角齿轮,关闭“Show Excluded Files”即可。 阅读全文
posted @ 2015-03-17 00:47 丶Blank 阅读(1305) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页