How would you implement division without +, - or multiplication
Anonymous
for division, a adding function needs to be built first int add(int x, int y) { int a, b; do { a = x & y; b = x ^ y; x = a << 1; y = b; } while (a); return b; } the following part would be easy. For the median searching problem, do not seek to load all the data into memory once for all. Do it in a smarter way. And keep in mind, the total number of integers are finite, so ask how much memory you can use, and do it with possibly multiple passes.
Check out your Company Bowl for anonymous work chats.