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 | | b**a 发帖数: 1118 | | 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 | | b**a 发帖数: 1118 | 10 What binary search has to do with this question? Thanks. |
|