I'd like to write an unsigned Big Int library in C++ as an exercise, however I would like to stay away from using the traditional vector of chars storing individual digits. Due to the amount of memory wasted by this approach.
Would using a vector of unsigned short ints (ie. 16 bit postive integers) work, or is there a better way of doing this?
To Clarify, I would store "12345678" as {1234, 5678}.