Tesla Interview Question

celestialS is a data structure that represents celestial bodies in the solar system. However, the data structure is taking up too much space on an x86 system. How can the celestialS structure be changed so that it needs 8 or fewer bytes for storage without losing fidelity in any of the members.

Interview Answer

Anonymous

Dec 2, 2017

Designed a data structure with bitfields