Skip to content

Create TrailingZeroes.java#1

Open
hacreating wants to merge 1 commit intomainfrom
hacreating-patch-1
Open

Create TrailingZeroes.java#1
hacreating wants to merge 1 commit intomainfrom
hacreating-patch-1

Conversation

@hacreating
Copy link
Owner

Most of the students know how to write a program to find a trailing zero , but when there is a twist come in a question or problem statement like find the trailing zeros in Binary Representation of a input number then everyone losses the hope . but now I come up with a super optimized solution for such problems with having O(1) Time Complexity (Constant time complexity ) which is an achievement in it self . example input :- 168 ; output :- 3
example input :- 128 ; output :- 7

Most of the students know how to write a program to find a trailing zero , but when there is a twist come in a question or problem statement like find the trailing zeros in Binary Representation of a input number then everyone losses the hope . but now I come up with a super optimized solution for such problems with having O(1) Time Complexity (Constant time complexity ) which is an achievement in it self .
example input :- 168 ; output :- 3
example input :- 128 ; output :- 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant