Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx106
var assert = require('assert');function mergeSortedLists(head1, head2) { // fill in this method return head;}// Supporting data structuresfunction Node(val) { this.val = val; this.next = null;}class LinkedList { constructor() { this.head = null; this.tail = null; } prepend(newVal) { const currentHead = this.head; const newNode = new Node(newVal); newNode.next = currentHead; this.head = newNode; if (!this.tail) {OUTPUT
Results will appear here.