Somebody ask me some interview questions, regarding programming:
1. How can multiply 2 numbers, without using '*' operator ? For instance, 7 * 4, but without using "*" ?
2. If we have a simple linked list (of pointers), and we loop this list, how can we know if we were reach again an element of the list, but, without using any helper list (an helper list, where we can insert every element on looping, and on every loop, to check if this element was met before).
If you have few minutes, I will be glad if you answer me.
Thank you.
↧