We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Merge two sorted linked lists
- Discussions
Merge two sorted linked lists
Merge two sorted linked lists
Sort by
recency
|
225 Discussions
|
Please Login in order to post a comment
Not very clean, but non-recursive solution that uses given class in js:
I solved it in ts using arrays istead of linked lists, bc I didn´t wanted to declare classes.
And also I think the challenge is poorly explained.
function main(il: string[]) { const arr: number[] = il.map(Number); const len = Number(arr.splice(0, 1)[0]);
}
this challenge is poorly written
There're mistakes in a description at the end fo the problem. Explanation of the list to be merged for list 1 has wrong values.