NVIDIA Interview Question
205 Interview Reviews |
Back to all NVIDIA Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at NVIDIA:
given 2 unsigned ints a and b, return 1 unsigned int = a/b, rounded to nearest int without float operation
Helpful Question?
Yes |
No
Inappropriate?



0 of 0 people found this helpful
by SomeOtherGuy:
unsigned int r = a * 10 / b;
return r / 10 + ((r % 10 >= 5) ? 1 : 0);
}