Data structure and algorithms problems in C++
github.com
github.com
There's some really great, fantastically fast methods in https://graphics.stanford.edu/~seander/bithacks.html that require some interesting insights in finite fields. These are usually the sorts of techniques you'd want to turn to for bit twiddles
There's also potential for undefined or implementation-defined behavior (e.g. multiply_by_7() is left shifting signed int). Author's heart is in the right place it's just that his skills aren't necessarily up to the task, I'm afraid.
Thank you for the feedback. Some of the programs here are coded 4 years ago, when I had just started learning C++ and I never revisited them. At that time, I was in university, and this repo was to attract recruiters for internship. I got the job later, and kind of ignored to correct problems. I am sure if these are ran with strict compiler flags there would be many more issues. I will get around and fix it sometime soon.
Algorithms are fine, though.