Education + Jobs Hiring Website - 2025
0 like 0 dislike
871 views
Given an integer n. Your task is to find the count of x(x>=0) that
n|x<=n. | means bitwise OR operation

Constraints:

1>= N<=1000000000,

Testcase Input

3

Testcase Output

4

Explanation

X= 0, 1, 2, 3
in Online Assessments by Expert (145,160 points) | 871 views

Please log in or register to answer this question.