上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 30 下一页
摘要: 题目1 : 欧拉路·一时间限制:10000ms单点时限:1000ms内存限制:256MB描述小Hi和小Ho最近在玩一个解密类的游戏,他们需要控制角色在一片原始丛林里面探险,收集道具,并找到最后的宝藏。现在他们控制的角色来到了一个很大的湖边。湖上有N个小岛(编号1..N),以及连接小岛的M座木桥。每座... 阅读全文
posted @ 2015-06-06 21:42 Eason Liu 阅读(828) 评论(0) 推荐(0) 编辑
摘要: Count Complete Tree NodesGiven acompletebinary tree, count the number of nodes.In a complete binary tree every level, except possibly the last, is com... 阅读全文
posted @ 2015-06-06 12:59 Eason Liu 阅读(2615) 评论(0) 推荐(0) 编辑
摘要: Minimum Adjustment CostGiven an integer array, adjust each integers so that the difference of every adjacent integers are not greater than a given num... 阅读全文
posted @ 2015-06-03 12:55 Eason Liu 阅读(525) 评论(0) 推荐(1) 编辑
摘要: Maximal SquareGiven a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the ... 阅读全文
posted @ 2015-06-03 12:01 Eason Liu 阅读(3049) 评论(2) 推荐(0) 编辑
摘要: Contains Duplicate IIIGiven an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennum... 阅读全文
posted @ 2015-06-01 15:33 Eason Liu 阅读(6013) 评论(0) 推荐(0) 编辑
摘要: Subarray SumGiven an integer array, find a subarray where the sum of numbers iszero. Your code should return the index of the first number and the ind... 阅读全文
posted @ 2015-06-01 12:21 Eason Liu 阅读(2392) 评论(0) 推荐(0) 编辑
摘要: 题目1 : 拓扑排序·二时间限制:10000ms单点时限:1000ms内存限制:256MB描述小Hi和小Ho所在学校的校园网被黑客入侵并投放了病毒。这事在校内BBS上立刻引起了大家的讨论,当然小Hi和小Ho也参与到了其中。从大家各自了解的情况中,小Hi和小Ho整理得到了以下的信息:校园网主干是由N个... 阅读全文
posted @ 2015-05-30 23:20 Eason Liu 阅读(420) 评论(0) 推荐(1) 编辑
摘要: Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at leas... 阅读全文
posted @ 2015-05-29 13:28 Eason Liu 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 题目描述给定一个数组和滑动窗口的大小,找出所有滑动窗口里数值的最大值。例如,如果输入数组{2,3,4,2,6,2,5,1}及滑动窗口的大小3,那么一共存在6个滑动窗口,他们的最大值分别为{4,4,6,6,6,5}; 针对数组{2,3,4,2,6,2,5,1}的滑动窗口有以下6个: {[2,3,4],... 阅读全文
posted @ 2015-05-29 11:36 Eason Liu 阅读(410) 评论(0) 推荐(0) 编辑
摘要: A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you aregiven... 阅读全文
posted @ 2015-05-26 16:59 Eason Liu 阅读(14639) 评论(1) 推荐(1) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 30 下一页