Question: Given the code below, working with lists, as defined in class: function interleave(Ist1, Ist2) { return Ist1.isEmpty() ? empty() : node(Ist1.head(), interleave(Ist2, Ist1.tail())); } function

 Given the code below, working with lists, as defined in class:

Given the code below, working with lists, as defined in class: function interleave(Ist1, Ist2) \{ return Ist1.isEmpty() ? empty() : node(Ist1.head(), interleave(Ist2, Ist1.tail())); \} function revNums(lst) return Ist.isEmpty() ? 0 : Ist.head() + 10*revNums(Ist.tail()); \} Denoting lists with brackets, and given that list L1 is [3] and list L2 is [1,52, 55], what's the output of revNums(interleave(L1, L2))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!