One way to perform division of a number by 3 without utilizing arithmetic operators such as multiplication, division, addition, subtraction or modulus is by using bit manipulation.
Here's the algorithm:
The final result will be the quotient of the original number divided by 3.
Here's an example: Let's consider the number 9
Therefore, the answer is 2.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-21 23:25:03 +0000
Seen: 12 times
Last updated: May 21 '23