<div dir="ltr">Hi Ben<div><br></div><div>One useful tactic for problem-solving is to solve a simpler, related problem first, and then go back to the real thing with additional insight. In this case, can you write a program to list all the paths in the tree from root to leaf?<br>
</div><div><br></div><div>Some more hints:</div><div><ul><li>Review the docs on letrec syntax; here you're using letrec like a plain let</li><li>Instead of "backtrack", consider returning #f (false) when you hit a leaf that's a non-match</li>
<li>Use symbols instead of strings in your example-tree: '(E (B (S)) (U (V) ...)</li><li>Consider using first and rest instead of car, cdr and friends</li></ul><div>Dan</div><div class="gmail_extra"><div dir="ltr">
</div>
</div></div></div>