Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
850 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 (144,450 points)

Please log in or register to answer this question.

...