Wrox Programmer Forums Order the Ages - Left/Right versus "clockwise"
 Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 Read more about Puzzles for Programmers and Pros or buy the book from your favorite retailer Download the code for Puzzles for Programmers and Pros
 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersâ€™ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
July 24th, 2007, 01:04 PM
 Registered User Join Date: Jul 2007 Location: Lancaster, CA, USA. Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts
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

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is OffTrackbacks are Off Pingbacks are On Refbacks are Off Forum Rules

 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

All times are GMT -4. The time now is 09:32 AM.