congratulations! Excellent work! Very interesting algorithm.

I”m struggling and thinking hard to work out how you implemented this in your code, but to no avail.

I am working on a recursive algorithm but i cannot seem to be getting it right.

if you posted your code that would help a lot of people.