7 kyu

Find the number of trailing zeros, in its binary representation , of a number.

495 of 967anudeep7150

Description:

Given a number n, find the number of trailing zeros in its binary representation.

Examples:

4 -> 2, because 4 is represented as 100
5 -> 0, because 5 is represented as 101

Limits:

0 < n <= 10^4
Logic
Bits

More By Author:

Check out these other kata created by anudeep7150

Stats:

CreatedSep 16, 2024
PublishedSep 16, 2024
Warriors Trained1501
Total Skips22
Total Code Submissions2166
Total Times Completed967
Python Completions495
Haskell Completions23
C Completions73
JavaScript Completions266
Rust Completions51
C# Completions59
Dart Completions31
Lua Completions17
Scala Completions16
TypeScript Completions50
λ Calculus Completions11
Total Stars12
% of votes with a positive feedback rating90% of 138
Total "Very Satisfied" Votes115
Total "Somewhat Satisfied" Votes19
Total "Not Satisfied" Votes4
Total Rank Assessments18
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • anudeep7150 Avatar
  • JohanWiltink Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • dfhwze Avatar
  • tobeannouncd Avatar
  • ghnoob Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
  • Tester_blck Avatar
  • saudiGuy Avatar
  • estem8 Avatar
Ad