7 kyu
Highest power of 2 that evenly divides a number
299 of 622d0n14
Description:
Write a function that takes a number and returns highest power of 2 that evenly divides the number.
Examples:
for n = 123, should return 1
for n = 192, should return 64
for n = 132232, should return 8
Assume that: number is an integer within the range [1..10^18].
Fundamentals
Similar Kata:
Stats:
Created | Mar 28, 2017 |
Published | Mar 28, 2017 |
Warriors Trained | 1061 |
Total Skips | 30 |
Total Code Submissions | 1814 |
Total Times Completed | 622 |
C++ Completions | 299 |
C# Completions | 118 |
PHP Completions | 96 |
C Completions | 63 |
COBOL Completions | 8 |
Total Stars | 14 |
% of votes with a positive feedback rating | 92% of 172 |
Total "Very Satisfied" Votes | 151 |
Total "Somewhat Satisfied" Votes | 15 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 17 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |