January 2, 2014 at 4:28 am
Happy New Year to all of you......
January 2, 2014 at 5:14 am
Happy New Year, Everybody!
Hope you are all able to keep your resolutions; I'll try my best to complete mine. One of which is to be more active in the Sql Server community.
---------------
Mel. 😎
January 2, 2014 at 8:41 am
Great question and happy new year!
January 2, 2014 at 9:18 am
Thomas Abraham (1/2/2014)
Sad that 9%, er 1001%, selected answers that ended in 1!Thanks for the question.
+1010:-D
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 2, 2014 at 9:47 am
Thanks Steve, Kind of like back to the very basics! Very Cool!
M.
Not all gray hairs are Dinosaurs!
January 2, 2014 at 10:20 am
IgorMi (1/1/2014)
Cool, in11111011110
it was essential to spot that the first two bits (1) and the last one (0) are constructing the right answer.
Regards,
IgorMi
That's pretty much how I did it. Since the last bit had to be a zero since it's an even number, that narrowed it down to 2 answers. Since they differed on the second bit, I only calculated that far.
Love multiple choice.
January 2, 2014 at 11:45 am
Nice question.
But although the explanation is correct adding up the 1 bits is doing it the hard way. 2014 is 2047 - 33, so the bits with are 0 must be the bit that represents 1 and teh bit that represents 32 - that's much easier. Or doing it by elimination as suggested by Igor and Marcia - 2014 is oddeven so the last bit is zero; it's bigger that 1536, so the 2nd bit (from the significant end) is not zero. That eliminates 3 of the 4 options, and is a lot easier than adding up the powers of two indicated by 10 bits to see if they come to 2014 even if you start by testing the correct value: if you did it that way and came to the correct value last you would end up adding up 3 sets of 10 numbers - no need to ad up teh 4th set once you know the others are all wrong - really a lot of work compared with the not-so-hard ways of doing it.
Tom
January 2, 2014 at 12:33 pm
Thanks for the fun question Steve. Haven't converted anything from binary since school. Happy 2014 all.
January 6, 2014 at 12:22 am
twin.devil (1/1/2014)
Bill (DBAOnTheGo) (12/31/2013)
There are only 10 types of people in this world.+10 🙂
+10 🙂
Happy 2014...
January 6, 2014 at 3:25 am
Great question.
Happy 11111011110 to you all!
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 31, 2014 at 6:35 am
easy one this year on my blog, my happy new year wishes were in binary format 🙂
February 9, 2014 at 1:02 am
Excellent Question. Reducing things to Binary should remind Computer people of our origins.
June 11, 2015 at 1:07 am
Indeed. Back to basic.
There are 10 kind of people.
Those who understand binary counting and those who don't.
Before I went to school I thought
1 + 1 = 3
On elementary school I find out it was less
1 + 1 = 2
Computer science reduced this again
1 + 1 = 1
Viewing 14 posts - 16 through 28 (of 28 total)
You must be logged in to reply to this topic. Login to reply