<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 11, 2014 at 5:26 AM, Jack Mott <span dir="ltr"><<a href="mailto:jack.mott@gmail.com" target="_blank">jack.mott@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I did try this approach as well, reversing the digits and adding elements to the head, however having to use take and letting the list build  up larger seems to result in slightly worse performance overall.</div></div></blockquote><div><br></div><div>The list doesn't build up. The specification for Keith Numbers requires that we only sum the previous n numbers, where n is the length of the decimal encoding of the given number, so we always truncate using take before the recursive call.</div></div>
</div></div>