由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Bitonic search的问题
相关主题
算法作业求教想成为嵌入式程序员应知道的0x10个基本问题 zz
现在面试可以用Java8吗?[合集] 想成为嵌入式程序员应知道的0x10个基本问题 zz
请教一道Google面试题google 首轮面世汇报
C++ question, square rootGoogle电话面试题目
什么也不管了,给了一个烙印很差的feedback[合集] Google电话面试题目
Search for a Range - leetcode职业杯另外一道
Google 面试题 一道问一道题
问一道google的题再来一道简单的bit运算题
相关话题的讨论汇总
话题: bitonic话题: integers话题: array话题: given话题: sequence
进入JobHunting版参与讨论
1 (共1页)
a*d
发帖数: 47
1
An array is bitonic if it is comprised of an increasing sequence of integers
followed immediately by a decreasing sequence of integers.
Given a bitonic array a of N distinct integers, describe how to determine
whether a given integer is in the array in O(log N) steps
h***9
发帖数: 45
2
二分法找到2段序列的分界点 O(log N),
然后用二分法在每段序列里面分别找 O(log N)。

integers

【在 a*d 的大作中提到】
: An array is bitonic if it is comprised of an increasing sequence of integers
: followed immediately by a decreasing sequence of integers.
: Given a bitonic array a of N distinct integers, describe how to determine
: whether a given integer is in the array in O(log N) steps

s***e
发帖数: 793
3
1L is right. You need to find the peak and search two subarray.

integers

【在 a*d 的大作中提到】
: An array is bitonic if it is comprised of an increasing sequence of integers
: followed immediately by a decreasing sequence of integers.
: Given a bitonic array a of N distinct integers, describe how to determine
: whether a given integer is in the array in O(log N) steps

1 (共1页)
进入JobHunting版参与讨论
相关主题
再来一道简单的bit运算题什么也不管了,给了一个烙印很差的feedback
Search in a sorted, rotated listSearch for a Range - leetcode
一道面试算法题Google 面试题 一道
一道program challenge的题问一道google的题
算法作业求教想成为嵌入式程序员应知道的0x10个基本问题 zz
现在面试可以用Java8吗?[合集] 想成为嵌入式程序员应知道的0x10个基本问题 zz
请教一道Google面试题google 首轮面世汇报
C++ question, square rootGoogle电话面试题目
相关话题的讨论汇总
话题: bitonic话题: integers话题: array话题: given话题: sequence