3 ms·
Seconded, I googled bitfields and Stack Overflow and still don't understand the OP even a little.
by Noumenon72 7y ago
Seconded, I googled bitfields and Stack Overflow and still don't understand the OP even a little.
- efreak 7y agoFor sorting 3,5,8,2,7: you take 0000000000, representing all 10 single digit numbers (0-9), and encode the given numbers into it as 0011010110. Now you just read out each one in order: 2,3,5,7,8. No need to store the actual numbers themselves. It's possible that I'm getting this wrong, but this is my understanding of it.