
Aaditya P. answered 06/16/22
Data Science Masters Student for Math, CS & Biology tutoring
Ovanes G.
asked 06/16/22Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary. For an integer x, the algorithm is:
Note: The above algorithm outputs the 0's and 1's in reverse order.
Ex: If the input is:
the output is:
6 in binary is 110; the algorithm outputs the bits in reverse.
Aaditya P. answered 06/16/22
Data Science Masters Student for Math, CS & Biology tutoring
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.