jwasham / computer-science-flash-cards

Mini website for testing both general CS knowledge and enforce coding practice and common algorithm/data structure memorization.
Creative Commons Attribution Share Alike 4.0 International
8.46k stars 2.02k forks source link

Request: unpack the dbs into a format that can accept a diff #36

Closed beck closed 2 years ago

beck commented 5 years ago

I noticed an error in one question:

Using bitwise operations, how would you test that a number is a power of 2? bool isPowerOfTwo = (x & (x - 1);

The solution should be:

(x & (x - 1)) == 0

jwasham commented 5 years ago

That's a good catch. I've not worked on this project in a long time, and adding support for a diffable format is not something I have time for right now. Sorry!

jwasham commented 2 years ago

Closing due to age of issue.