Please answer the question in the screenshot. The language used is Java.
Extracted text: Given two sorted singly linked lists, merge them together and return the fully sorted singly-linked lists. The ListNode class has been provided for you as below, and you can not use LinkedList class in Java. The code is partially finished, and you have to use the provided parameter name. You are free to create new linked lists if deemed necessary. Pseudo code is not accepted. public class ListNode { int val; ListNode next; ListNode (int x) { val = x; } } Note: Your method should start with the required name and parameters: public class Sort { public static ListNode mSort(ListNode head1, ListNode head2) { //... } }
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here