This is a part of the optional track, so it is not very likely to receive much attention there, but I need some help with this exercise. My code now sort of work, and passes the unit tests, but I don’t really understand what I wrote. The solution is very much a hack and I am sure it could be done better.
My code and the unit test is posted @ my own gist here:
It works, but not great, and I don’t know why it works (putting in all the code i see in previous tutorials to make it work), and I don’t even know where to start asking. Perhaps start from
rev()? is there a way to not clone twice (once in
rev, another in