Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > BOOK: Puzzles for Programmers and Pros BOOK ISBN: 978-0-470-12168-9
Password Reminder
Register
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
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 .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 24th, 2007, 02:04 PM
Registered User
 
Join Date: Jul 2007
Location: Lancaster, CA, USA.
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
 


Thread Tools
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:13 AM
Been wanting 2 know this for ages! Apocolypse2005 Beginning VB 6 9 September 21st, 2007 12:36 PM
IN versus LEFT JOIN (differences?) Fysicus SQL Language 1 October 17th, 2006 06:22 AM



All times are GMT -4. The time now is 02:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.