1

As per Wikipedia, a find first algorithm is:

a bit operation that, given an unsigned machine word, designates the index or position of the least significant bit set to one in the word counting from the least significant bit position.

This is also known as the "count trailing zeros" algorithm. What is the fastest way to implement it in Solidity?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.