Also, your definition of:<br><br>
(define(insert-everywhere/in<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-one-word s word)<br>
(cond<br>
[(empty? word)(cons(cons s empty)empty)]<br>
[else(cons(cons s word)<br>
(insert-middle-end/in-one-word (cons (first word) empty) s (rest<br>
word)))]))</blockquote><div><br>along with its auxiliary function looks overly complicated to me, even if it is a working solution.<br><br>In the else clause, with the design recipe, before creating auxiliary functions, you should ask yourself if there's some way to assemble the correct answer using the various pieces of the inputs and the recursive call to the function itself. So, for example, you have the pieces:<br>
s<br>(first word)<br>(rest word)<br>(insert-everywhere/in-one-word s (rest word))<br><br>Can you combine these elements to solve the answer for the else clause? That last piece, namely (insert-everywhere/in-one-word s (rest word)), is an important one, and if you can figure out how to use it, your auxiliary function should be simpler and more efficient.<br>
<br>--Mark</div>