subject
Computers and Technology, 19.06.2021 05:30 Weser17

Reverse Bits (Java) public class LC_6_17_Reverse_Bits {
//date is 6/17/2021
public static void main(String[] args) {}

public int reverseBits(int n) {
int ans = 0;
for (int i = 0; i < 32; i++) {
ans <<= 1;
ans = ans | (n & 1);
n >>= 1;
}
return ans;
}

{
}
}
what changes with the input will make this code print the intended output:
input: 00000010100101000001111010011100
output: 964176192 (00111001011110000010100101000000)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:50
You are working as a security analyst in a company xyz that owns the whole subnet range of 23.0.0.0/8 and 192.168.0.0/8. while monitoring the data, you find a high number of outbound connections. you see that ip's owned by xyz (internal) and private ip's are communicating to a single public ip. therefore, the internal ip's are sending data to the public ip. after further analysis, you find out that this public ip is a blacklisted ip, and the internal communicating devices are compromised. what kind of attack does the above scenario depict?
Answers: 3
question
Computers and Technology, 22.06.2019 14:30
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
You know the right answer?
Reverse Bits (Java) public class LC_6_17_Reverse_Bits {
//date is 6/17/2021
public stat...
Questions
question
Medicine, 28.05.2020 11:58
question
English, 28.05.2020 11:58
question
Mathematics, 28.05.2020 12:57
question
Health, 28.05.2020 12:57
question
Mathematics, 28.05.2020 12:57
question
Computers and Technology, 28.05.2020 12:57
question
Mathematics, 28.05.2020 12:57
Questions on the website: 13722361