7 kyu
Find the number of trailing zeros, in its binary representation , of a number.
494 of 965anudeep7150
Loading description...
Logic
Bits
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I forgot about that one earlier :-/ Duplicate: https://www.codewars.com/kata/56aed5db9d5cb55de000001c
Lambda Calculus translation
Lua translation!
Scala translation
Translate Dart
check my solution Monadiusssssssssssssssssssssssssssssssssssssssssssssssssssss
JS translation
this translation modifies the description, mainly for markup
Haskell translation
Random tests go up to
999
, but description promises us10_000
( usemapSize (* 100) $ property $ \ (Positive n) -> do
to get that and automatic shrinking ).A white kata should show inputs on test failure ( use
Test.HUnit.assertEqual
for that ).I must've misread the input limits. That's been updated. Fork here
Also, is it preferred to show inputs differently than the way QuickCheck displays them, like below?
The way QuickCheck show them is not ideal, fully agree. All the alternatives ( that still do shrinking ) are a lot more work though. If I really want nice messages, I just forgo shrinking. ( But shrinking is just so nice to have! :)
Approved by Johan
n
as per the description..
No Random Tests
updated