moogacs / problem-solving

Problem solving repo. for the purpose to collect problems solution with different programming language
MIT License
16 stars 51 forks source link

Added is_power_of_2.c #56

Open LucaPalumbo opened 5 years ago

LucaPalumbo commented 5 years ago

Added a program to check if a number is a power of 2 with a complexity of O(1);