Which one line function can be used to get index of the least significant bit that is on (first 1 from right to left in binary representation of an integer) ?
Bitmasking Quiz
ffs() function returns the index of first least significant set bit.
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course