↳
not sure why you brought in VM... has nothing to do with the question....
↳
This is one of the most dumb 18th century questions that can be asked. Threads are not same for a VM and the OS. Generally, a VM is allowed a single OS thread. Under such condition, more than one time slice is not possible by multithreading. Less
↳
I could not fully finish it
↳
Check whether the distance between the two center points P1 and P2 is less than the sum of radii of the circles. ||P1-P2|| <= r1 + r2 should be true. Less
↳
The trick to this question is in handling data so large that the computer needs to truncate the less significant values. For example: 10e15 on a computer would probably be stored as 1.0 e 16. Precision for a float only extends to 6 numbers (if I remember correctly) so 1 000 000 000 000 001 (1.000000000000001 e 15) would be (1.00000 e 15). The algorithm should handle special cases like this or one should be aware of this when coding. Less
↳
Obviously not very smart people behind such a technique.