一亩三分地 标签 标签 刷题 相关帖子

标签:
刷题 (#刷题)

7270个主题 | 99818个回复 | 最后更新: 9 小时前

相关帖子

版块 回复/查看 最后发表
求杨氏矩阵第k大的值

杨氏矩阵是这样的矩阵,它的每行每列都是由小到大排序的。以前板上post了一道google的算法题,大家在杨氏矩阵第k大问题上卡住了,前段时间无意发现一个解法,感觉很不错(非 ...

刷题 6 9352 richardzrc 2015-1-6 16:04
Microsoft : 一个栈实现队列

用一个栈实现队列的先进先出特性

刷题 25 7884 vng 2013-8-26 15:27
区间最大值问题

给一个很大的数组a, 再给m个查询。查询是找出在给定a的某个区间中最大的那个元素。比如a是a= {1,2,3,4,5,6,7,8,9,0} 查询是[0,3]则回答是4。设计一种算法或数据结构能最 ...

刷题 5 2602 chivalry 2012-11-18 14:12
Microsoft : find the next biggest node in a BST

Write a function that, given a binary search tree and a value, will find the next biggest node value in the tree

刷题 2 2165 xyqshi 2012-10-9 02:49
Microsoft : Create two evenly balanced teams for a game of soccer.

Create two evenly balanced teams for a game of soccer.Condition:The difference between the number of players in both teams should not differ by more than 1 . ...

刷题 2 2676 xyqshi 2012-10-9 02:21
Microsoft : Rearrange an array of positive and negative integers,

Given an array of positive and negative integers, re-arrange it so that you have postives on one end and negatives on the other, BUT retain the original ord ...

刷题 13 3224 lichcat 2012-9-14 10:03
Google : 求1到n个数中,1出现的个数

比如当n为5时,1,2,3,4,5,1出现的次数为1n为15时,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 1出现的次数为7次

刷题 9 3113 lambda2fei 2012-9-4 16:56
Amazon : Find a[i] == i

Given a Sorted array S. You've to return an index i where s=i or -1 if there is no index such

刷题 31 6705 chenyongsuda 2012-5-22 14:47
Microsoft : Excel 列的编号

In MS Excel, the column numbers are named as A, B, C, ......, Z. If you go beyond this 'Z' column you will encounter AA-->AZ, BA-->BZ, .... ZA-->ZZ then AAA-- ...

刷题 3 2345 04079029 2012-5-2 09:32
Microsoft : One special sort problem

There is an array of odd and even numbers. Now, sort them in such a way that the top portion of the array contains odd numbers, bottom portion contains even n ...

刷题 7 2918 ilnlh 2012-2-27 13:18
Google : 句子分割

给你一个没有间隔的字符串“thisisasentence”,如何将他分割成如下的句子:“this is a sentence”。提供一个函数用来检验一个字符串是不是单词:bool dic(const char* ...

刷题 11 3778 babyfrog 2011-7-19 12:20
Facebook : 构造递减数列

Given an array A of positive integers. Convert it to a decrement array with minimum cost. The only valid operation are:Decrement with cost = 1 (only once on a ...

刷题 12 3136 wwwyhx 2011-6-24 18:23
Google : 搜索提示功能实现

这个问题我见过Google问了好几次了:就是像Google和百度那种搜索关键字输入的框框,你输入一半字符串它会在下拉列表里按搜索频率高低显示关键词。比如你输入"hel",下拉框 ...

刷题 4 3986 wwwyhx 2011-6-20 19:53
火车售票问题

某次列车途经C个城市,城市编号依次为1到C,列车上共有S个座位,铁路局规定售出的车票只能是坐票,即车上所有的旅客都有座,售票系统是由计算机执行的,每一个售票申请包含 ...

刷题 2 2675 bignews 2011-6-11 14:17
Google : 求柱状统计图里最大矩形面积

就是给一个柱状统计图,各个小矩形宽度相等,高度不一,每一个矩形是由几个相邻柱状条条组成,矩形的高度为最短的那根条条,求所有组合中最大的矩形面积,假设柱状统计图是 ...

刷题 3 4637 wwwyhx 2011-6-8 20:37
找零钱算法

现在有大量的1元,2元,5元,10元,20元和50元面额的纸币,给定一个金额总数,用这些零钱找开,求一共多少种找法。比如4元有 :1111, 211, 22, 三种找法有一种快的算法 ...

刷题 5 3187 wwwyhx 2011-6-8 20:33
计算括号排列种数

n对括号可以有多少种匹配排列方式?比如两对括号可以有两种:()()和(())

刷题 1 3061 wwwyhx 2011-6-5 11:13
表达式加括号使和最大

Give you a expression,you can add some parenthesis to maximize result.Example as following:1 + 2 * 3 - 2Its result is 7 in the example.But you can add a par ...

刷题 3 3009 wwwyhx 2011-6-5 10:45
最长等差数列问题

以排好序的数组,找出数组最长等差数列的长度,比如1 3 5 6 8 9 10 12 13 14最长等差数列为6 8 10 12 14

刷题 3 3136 wwwyhx 2011-5-28 14:36
给定序列,判断是否为BST后续遍历结果

判断整数序列是不是二元查找树的后序遍历结果题目:输入一个整数数组,判断该数组是不是某二元查找树的后序遍历的结果。如果是返回true,否则返回false。例如输入5、 ...

刷题 3 2527 wwwyhx 2011-5-28 14:14
>
返回顶部