You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Prateek Bhayia likes to play with bits. One day Prateek bhayia decides to assign a task to his student Sanya. You have help Sanya to complete this task. Task is as follows - Prateek Bhayia gives Q queries each query containing two integers a and b. Your task is to count the no of set-bits in for all numbers between a and b (both inclusive)
7
+
8
+
// Input Format
9
+
// Read Q - No of Queries, Followed by Q lines containing 2 integers a and b.
10
+
11
+
// Constraints
12
+
// Q,a,b are integers.
13
+
14
+
// Output Format
15
+
// Q lines, each containing an output for your query.
0 commit comments