Q13Numerical5 Marks22 Dec 2024
What will the value of s be at the end of the execution of the following pseudocode?
```
L1 = [2, -1, 5]
L2 = [3, 4, 2]
s = dosomething(L1, L2)
Procedure dosomething(X, Y)
if(length(X) != length(Y)){
return(0)
}
if(length(X) == 0 and length(Y) == 0){
return(0)
}
return(first(X) * last(Y) + dosomething(rest(X), init(Y)))
End dosomething
```
Press Enter to check.