Answer
I would consider this to be tricky question as many people would just go with
if (a == b) or at most a.Equals(b)
but both can fail for fl ...
Search results for double a number
Fibonacci numbers interview questions
Posted by aleksin
One of most common question from this area is to write a function which return Nth number of Fibonacci sequence.
Fibonacci numbers are a sequence of n ...
Possible Solution:
Bitwise operations are very efficient and unexpressive, and doubling a number is a simple shift to the left i.e adding a zero on ...
Answer:
int Double(int Number)
{
return (Number >> 1);
}
Note that the fractional part is rounded down.
...
« previous1 next »
