Gunnar Kudrjavets

Paranoia is a virtue

Dr. Dobb's Journal and Google puzzles

Coming back from the vacation is like jumping into another dimension, there’s just too much stuff to do. But as a guilty pleasure I took this week an hour off for reading the latest issue of Dr. Dobb’s Journal and noticed that there’s definitely a new evolving trend in hiring software engineers - publishing puzzles in announcements. Not that asking puzzle questions during the interviews is something new, but I haven’t noticed too much advertisements containing them. If you want to do some mental work then here’s one from Google ;-)

5 2
14 20
26 ?

Which one of the possible answers (there are multiple patterns) is the right one? I really don't know, there are number of answers one can argue are the right ones ;-)

Posted: Aug 11 2004, 12:27 AM by gunnarku | with 17 comment(s)
Filed under:

Comments

Oleg Tkachenko said:

23 (as sum of columns) :)
# August 11, 2004 4:50 AM

Matthias Ernst said:

I'd say 44 (right = (left-4) * 2).
# August 11, 2004 4:53 AM

Phin Pope said:

17 : why?

5 - 3 = 2
14 + 6 = 20
26 - 9 = 17

alternate +/- whilst increasing by 3 each time
# August 11, 2004 5:15 AM

Oleg Tkachenko said:

Here the puzzle is:
http://kwc.org/blog/archives/resources/2004/06-25-04.googlead.jpg

If it's really

5 -> 2
14 <- 20
26 -> ?

or

5 <- 2
14 -> 20
26 <- ?

Then Phin might be right and it's 17 by a couple of patterns.
# August 11, 2004 5:37 AM

MacBirdie said:

I have on that says 17 too:

(diagonals)
5 + 20 + 1 = 26
2 + 14 + 1 = 17

Not very dependable, but why not. ;)
# August 11, 2004 5:38 AM

AT said:

Trivial !! This is parking slot.

As you can see - there is 3 lines drown on the ground.
Take a look on difference 5-2=3 and 20-14 = 6

So real question is the direction of 26 -> ? vs 26 <- ? and number of car slots neat 26 sign.

I will leave this for you.

Hints:
a) Draw parking slots layot.
b) Now think about free routes for a cars (it's mandatory to have free space in parking)
c) Take in account "Exit" sign. This mean that there is only one Exit. But this is possible that there is additional entry.
d) How many parking in total slots here ? (Not trivial question ;-)

Now additional questions from my side are "2" realy number two or it can be "12" ?
Why I'm asking this ? Becouse 14 can be in reality 13 ;o)
# August 11, 2004 6:23 AM

Girish said:

I am thinking its 260. (simplistic guess, I know).
# August 11, 2004 6:49 AM

Adrian Florea said:

5 * a + b = 2
14 * a + b = 20

So: a = 2, b = -8

26 * 2 - 8 = 44
# August 11, 2004 7:24 AM

Adrian Florea said:

If you want a more symmetric one:

5 * a + 2 * b = 8
14 * a + 20 * b = 8

a = 2, b = -1

So: 26 * 2 - x = 8

x = 44
# August 11, 2004 7:46 AM

Big Jim In STL said:

I would say 44 as well, for a different reason:

14 - 5 = 9 20 - 2 = 18 (18 = 2x the diff in the first column)
26 - 14 = 12 so 44 - 24 = 20 (24 = 2x the diff in the first column)
# August 11, 2004 8:41 AM

Sam said:

what a stupid question, if there are so many 'right' answers.
# August 11, 2004 8:55 AM

Gunnar Kudrjavets [MSFT] said:

I was pointed out that there's already blog entry discussing this: http://kwc.org/blog/archives/0000/0000-00-00.puzzle_to_waste_your_weekend.html">http://kwc.org/blog/archives/0000/0000-00-00.puzzle_to_waste_your_weekend.html ;-) Some people argue it's all about picture, some people think picture doesn't matter. The comment thread at http://kwc.org/ is worth reading.
# August 11, 2004 8:58 AM

Dennis Forbes said:

32
# August 11, 2004 2:19 PM

noname said:

42 ;)
# August 11, 2004 2:34 PM

Adrian Florea said:

Or, if you prefer:

5 * 5 * a + 5 * b + c = 2
14 * 14 * a + 14 * b + c = 20
26 * 26 * a + 26 * b + c = x

you can arrive at:

70 * x = 183 * c + 5096

and for c = 28 we obtain x = 146.

So, with a linear model we have x = 44 and with a quadratic model we have x = 146

:-)
# August 11, 2004 7:08 PM

TrackBack said:

Olympics I wonder what the odds were in the Puerto Rico vs USA basketball game. In a huge upset, the US men basketball team finally lost 92-73. I think this is their 1st loss since 1984 and only their 3rd lost ever. In any case, it's good to see more competition. As for the rest of the Olympics, I always seem to miss some of the events I want to see. So, I decided to make note of some of the events I like. Too bad I only have 2 channels that broadcast Olympics events because there are some events I'd like to see (Taekwondo, fencing). CBC Tues Aug 17 06:00 p.m Judo, Boxing Mon Aug 23 06:00 p.m Boxing Tues Aug 24 06:00 p.m Diving Wed Aug 25 06:00 p.m Boxing Thurs Aug 26 06:00 p.m Diving NBC Tues Aug 17 12:30 a.m Judo Wed Aug 25 12:30 a.m Wrestling Video Game Vault Via joystiq.com, there's a nice link to a massive video game vault on the Internet Archive website. Lots of videos on various things such as high scores, speed runs, etc.. can be found here. This is awesome for any video game enthusiast. Craigslist The big technology news this week that I find interesting is that eBay has acquired 25% ownership of Craigslist.org. In a recent article that asks whether Craigslist is a Google 2.0, I found out they make $25 million among its 14 employees. That's quite remarkable. I myself like what Craiglist has to offer...
# August 15, 2004 8:20 PM

Dave said:

I used AT&T Integer Sequences Superseeker. Overkill, maybe.

"It appears that the differences of order 1 in the difference table of depth 1 have become constant. If this is true, the next four terms are:
[32, 38, 44, 50]"

Given that 32 happens to be 2 to the fifth, relating to the first two columns, and that any power of 2 has relation to a Google-ish problem, I strongly suspect AT&T is right on this one.

--Dave
# August 23, 2004 7:45 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)