[Home] [By Thread] [By Date] [Recent Entries]
On Aug 19, 2008, at 6:50 PM, G. Ken Holman wrote:
What result to you expect for your test string "/path/to/resource"? Ken, thanks so much for taking the time to help out. Sure enough, your solution works as advertised. :-) One thing I'd like to simplify/optimize is the number of recursive descents. It seems that your code recurses all the way down to the base case and back up for each path element to correctly construct the parent href. This is certainly not an O(n^3) algorithm, but it seems like a triangular number (http://mathworld.wolfram.com/TriangularNumber.html ). For very long paths, this creates more work than necessary. Even so, I'll take what works over what doesn't. :-) - Quinn
|

Cart



