Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
212 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 (108,110 points) | 212 views

Please log in or register to answer this question.