uShip.com Interview Question: Given an array of maxes and a... | Glassdoor

Interview Question

Software Engineer Interview

Given an array of maxes and an array of numbers, return an

  array of the numbers that are less than the maxes, corresponding to each max.
Answer

Interview Answer

1 Answer

0

It's straightforward to write an iterative solution for this in O(n*m) time.

Interview Candidate on Oct 5, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.