WalzoneInterview Prep
📞 Interviewing soon? Practice with a realistic AI mock phone interview — it calls you, then scores you. First 15 min FREE →

Wall Street Quant · Puzzles & Problems · question 45 of 155

An ant is on one corner of a empty cube. What is the shortest distance the ant must travel to get to the opposite corner of the cube?

📕 Buy this interview preparation book: 155 Wall Street Quant questions & answers — PDF + EPUB for $5

The shortest distance the ant must travel to get to the opposite corner of the cube is the length of the space diagonal of the cube. To calculate the space diagonal, we can use the 3D Pythagorean theorem, which states that the length of the diagonal is the square root of the sum of the squares of the side lengths. In this case, since all the sides of the cube have the same length, let’s say the side length is s.

The space diagonal (shortest distance) is given by:


$$d = \sqrt{s^2 + s^2 + s^2}$$

Simplifying the equation:


$$d = \sqrt{3s^2}$$

In general terms, for a cube of side length s, the shortest distance between opposite corners (space diagonal) is given by:


$$d = s\sqrt{3}$$

Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic Wall Street Quant interview — then scores it.
📞 Practice Wall Street Quant — free 15 min
📕 Buy this interview preparation book: 155 Wall Street Quant questions & answers — PDF + EPUB for $5

All 155 Wall Street Quant questions · All topics