由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - An interview question. Thanks.
相关主题
两道M软件大公司的最新面世算法题 (转载)Re: amazon onsite interview question (转载)
Check if the sum of two integers in an integer array eqauls to the given number 问个面试题目
an interview questiona probability interview question.
如何将若干已升序排序好的数组合并在一起,并仍然是升序?这个怎么allocate memory?
两个关于matrix的问题请教一FG家常见题 (转载)
[转载] CS Algorithm Interview questionJava 的算法题:怎样把missing value替换成0 放在新生成的2D array里面?
讨论几个面试题这两种写法面試时候你喜欢哪种?
If using C++, please avoid the use of STL for these questio (转载)C# 的不定长度的ARRAY?
相关话题的讨论汇总
话题: array话题: question话题: index话题: interview话题: rolled
进入Programming版参与讨论
1 (共1页)
b**a
发帖数: 1118
1
Write a function that takes a rolled array of ints and returns the index of
the beginning of the sequence." A rolled array is an array of sorted
integers, but the lowest value is not necessary at index 0. For the array: {
4, 5, 6, 0, 1, 2, 3} the function should return 3, which is the index of 0,
the smallest integer in the set.
g*********s
发帖数: 1782
2
这么简单的问题也问?自己动手吧。

of
{
,

【在 b**a 的大作中提到】
: Write a function that takes a rolled array of ints and returns the index of
: the beginning of the sequence." A rolled array is an array of sorted
: integers, but the lowest value is not necessary at index 0. For the array: {
: 4, 5, 6, 0, 1, 2, 3} the function should return 3, which is the index of 0,
: the smallest integer in the set.

b**a
发帖数: 1118
3
给点提示. Thanks.
b**a
发帖数: 1118
4
Anyone has an answer?
d*****a
发帖数: 110
5
不是我说你,这还要提示?
if(a[i]>a[i+1])

【在 b**a 的大作中提到】
: 给点提示. Thanks.
b**a
发帖数: 1118
6
Ft. So easy? No trick in it?
o*o
发帖数: 404
7
当然有了。

【在 b**a 的大作中提到】
: Ft. So easy? No trick in it?
b**a
发帖数: 1118
8
What is that then? Thanks.
当然有了。

【在 b**a 的大作中提到】
: Ft. So easy? No trick in it?
h*******e
发帖数: 225
9
binary search
b**a
发帖数: 1118
10
What binary search has to do with this question? Thanks.
1 (共1页)
进入Programming版参与讨论
相关主题
C# 的不定长度的ARRAY?两个关于matrix的问题请教
C++指针问题 int (*) [10][转载] CS Algorithm Interview question
一道很奇怪的面试题讨论几个面试题
这个reference 和*的区别If using C++, please avoid the use of STL for these questio (转载)
两道M软件大公司的最新面世算法题 (转载)Re: amazon onsite interview question (转载)
Check if the sum of two integers in an integer array eqauls to the given number 问个面试题目
an interview questiona probability interview question.
如何将若干已升序排序好的数组合并在一起,并仍然是升序?这个怎么allocate memory?
相关话题的讨论汇总
话题: array话题: question话题: index话题: interview话题: rolled