Wrox Programmer Forums
|
BOOK: Puzzles for Programmers and Pros BOOK ISBN: 978-0-470-12168-9
This is the forum to discuss the Wrox book Puzzles for Programmers and Pros by Dennis Shasha; ISBN: 9780470121689
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Puzzles for Programmers and Pros BOOK ISBN: 978-0-470-12168-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2007, 01:04 PM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Order the Ages - Left/Right versus "clockwise"

Hi! I solved the "Order the Ages" problem slightly differently, and came up with a different solution. Here was my thinking:
A + C + J + L + T = 135
C = 12 + C_left
T = 5 + T_right
J = 14 + J_left
L = L_left - 5
L < T < A < J < C
L=16
C=40
L_left = 21
C_left = 28
16 + 40 + 21 + 28 + ?? = 135, so ?? = 30
Therefore, 16 < 21 < 28 < 30 < 40, and T=21, A=28, J=30
Now, order the table.
C_left = A
T_right = L
L_left = T
J_left = L
So, I get: T, C, A, J, L
but the book got the opposite order!
Say I'm L and I look to my left, and see T... T would be clockwise of me, correct?
Or is 'left' and 'right' from the perspective of looking at the person? Usually, when we say that John is sitting to Bill's right, that John is at Bill's right-hand side, correct?
I suppose if everyone is facing *away* from the table, then the book is correct... but if they are actually sitting at the table facing inward, then I believe my solution is correct.
-- Glenn





Similar Threads
Thread Thread Starter Forum Replies Last Post
Comma Versus Dot Wenggo Javascript 6 March 1st, 2011 03:37 AM
LEFT vs LEFT OUTER joxa83 SQL Server 2005 3 September 18th, 2008 03:13 AM
Been wanting 2 know this for ages! Apocolypse2005 Beginning VB 6 9 September 21st, 2007 11:36 AM
IN versus LEFT JOIN (differences?) Fysicus SQL Language 1 October 17th, 2006 05:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.