The Fizz Buzz Fix: Secrets to Thinking Like an Experienced Software Developer (php[architect] anthology Book 4) by Edward Barnard

The Fizz Buzz Fix: Secrets to Thinking Like an Experienced Software Developer (php[architect] anthology Book 4) by Edward Barnard

Author:Edward Barnard [Barnard, Edward]
Language: eng
Format: azw3, epub
Publisher: php[architect]
Published: 2020-05-19T16:00:00+00:00


We now have one hexadecimal digit, 0x30000, and the decimal left-over of 30693. Our next unit is 4,096. How many times does 4,096 divide into 30,693? Well, how many times does 4.1 divide into 30.7? Four times seven is 28, so we’ll use seven as our estimate. 4,096*7 equals 28,672. As before, subtract to find the residue:

30,693

-28,672

=======

2,021

We now have two hexadecimal digits, 0x37000, with decimal residue 2,021.

Our next unit is 256. Since we know our powers of two, we immediately note 256*8 equals 2,048. That’s slightly above 2,021, so our estimate is seven. 256*7 equals 1,792.

Here’s how I do the subtraction in my head. 1,792 is eight short of 1,800. 2,021 minus 1,800 is 221. Add in the other eight to get 229. That is, 2,021 minus 1,792 is 229.

It does not matter how you make your estimate, so long as you come up with the correct number. I’m showing you my thought process in creating the estimate. Your thought process could be entirely different but equally correct and likely faster.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.