On Fri, Oct 30, 2009 at 10:52 AM, Satish Talim <satish.talim / gmail.com> wrote: > Ruby beginners: The third installment of the Ruby Programming Challenge for > Newbies (Short Circuit) is now live. The problem has been set by Gautam > Rege. Entry is free and registration is optional. You stand a chance to win > a prize. Hurry. Only 20 days per challenge - > http://rubylearning.com/blog/2009/10/30/rpcfn-short-circuit-3/ I totally read that as "Entry fee is optional" The problem statement might be flawed by trying to frame it in an electrical context. The author uses the phrase "Electricity always follows the path of least resistance" but I understood that current could flow down multiple routes in proportion inverse to the resistances, i.e. that if one path had a 10% higher resistance, it would receive 10% less current, not that all current would flow through the less resistive(?) path. Feel free to correct my knowledge of physics and electrical engineering though. I think the problem is just looking for a simple shortest path algorithm Dijkstra or something. -- Paul Smith http://www.nomadicfun.co.uk paul / pollyandpaul.co.uk