Given an array where every adjacent elements are differ by at most 1. Given such array find an element. Algorithm should avoid linear search.

asked 03 Oct, 23:24

Gautam%20Goswami's gravatar image

Gautam Goswami
92
accept rate: 0%


Could you give some examples?

link

answered 04 Oct, 02:41

watermelonlh's gravatar image

watermelonlh
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • Indent code by 4 spaces.
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×2

Asked: 03 Oct, 23:24

Seen: 45 times

Last updated: 04 Oct, 02:41