Skip to content

LSB

C++

1
2
3
int LSB(int n){
    return n & -n;
}
1
2
3
long long LSB(long long n){
    return n & -n;
}