Hmm, interesting! Maybe the simplest approach would be to just implement a class with 16 (or 32, whatever) booleans, and do the underlying bit-pattern math. Then on printing, interpret as powers of two, or two's-complement, or whatever you like.

... and that is what being a big fish in a small pond feels like ;-) That is, most of them there won't even make it that far. At least, that was my experience.

(My approach was the cruder one of just taking a remainder modulo max size after each operation.)

More "Stupid" Questions

by NancyLebovitz 1 min read31st Jul 2013498 comments

14


This is a thread where people can ask questions that they would ordinarily feel embarrassed for not knowing the answer to. The previous "stupid" questions thread went to over 800 comments in two and a half weeks, so I think it's time for a new one.