Western Digital Interview Question: Same thing as in previous que... | Glassdoor.co.in

Interview Question

Firmware Engineer Interview Kfar Saba (Israel)

Same thing as in previous question just this time you're

  given a range and the value x should be excluded from this range.
Answer

Interview Answer

1 Answer

0

take the function from last question (let's call it old_rand(int x))
int new_rand(int start, int end) {
   return old_rand(end - start) + start;
}

Yehudav on 20-Feb-2020

Add Answers or Comments

To comment on this, Sign In or Sign Up.