Osi Engineering, Inc. Interview Questions

Osi Engineering, Inc. Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(60)
Machine Learning
(58)
SQL
(31)
Probability
(18)
Analytics
(13)

Osi Engineering, Inc. Interview Questions

Practice for the Osi Engineering, Inc. interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

You are given a target value to search. If the value is in the array, then return its index; otherwise, return -1. 

Notes:

  • Rotating an array at pivot nn gives you a new array that begins with the elements after position nn and ends with the elements up to position nn.
  • You may assume no duplicate exists in the array.

Bonus: Your algorithm’s runtime complexity should be in the order of O(log⁡n)O(\log n).

Example:

Input: 

sample_input = [0,1,2,4,5,6,7]  
rotated_input = [4,5,6,7,0,1,2]
target_value = 6

Output:

def target_value_search(rotated_input, target_value) -> 2
SQL
Easy
SQL
Medium
Loading pricing options

View all Osi Engineering, Inc. questions

Challenge

Check your skills...
How prepared are you for working at Osi Engineering, Inc.?

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.

Discussion & Interview Experiences

There are no comments yet. Start the conversation by leaving a comment.

Jump to Discussion