00:01
Okay, so for this question, let's consider a recursive solution first.
00:04
So def links to list, and i'm going to actually write a helper function.
00:16
Def link to list helper lnk and then per list.
00:34
Okay, cool.
00:42
So if lnk, i don't exactly know the spec for your link to list class, but basically if this link is empty, so if lnk is equal to link .empty or something like that, is none, etc.
01:09
Then you'll want to return the list, and then, so that's our base case.
01:20
And then the other case is that it's not empty, in which case we are going to want to return a link to list helper of, again, i'm not sure what the spec is, but the next element that it points to, so link .next, and then per list plus link .value...