Divide By 3

Write a function to divide a given (integer) number by 3 without the use of the *, /, +, -, and % operators.

If you would like, you can submit code as your response and the most elegant solution (in any language) will be made available as part of the solution set in the next issue.

 

Puzzle Source



Submitted answers will be reviewed and the best will be posted (along with the solution author name) in the solution set as part of the following issue.



Thumbnail Image Provided by Maraya Rodostianos via Flickr

Sunjay Bhatia on linkedinSunjay Bhatia on instagramSunjay Bhatia on githubSunjay Bhatia on facebookSunjay Bhatia on email2
Sunjay Bhatia
Lead Editor & Web Developer.
Sunjay Bhatia is a Junior at Tufts majoring in Computer Science and minoring in Philosophy.

Leave a Reply

Your email address will not be published. Required fields are marked *