GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.hackerrank.com — Merge two sorted linked lists | HackerRank 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. This challenge is part of a tutorial track by MyCodeSchool Given pointers to the heads of two sorted linked lists, merge them into a single, sorted linked list. Either head pointer may be null meaning that the corresponding list is empty. Example The new list is Function Description Complete the mergeLists function in the editor below. mergeLists has the following parameters:
Returns
Input Format The first line contains an integer , the number of test cases. The format for each test case is as follows: The first line contains an integer , the length of the first linked list. Constraints
Sample Input Sample Output Explanation The first linked list is: The second linked list is: Hence, the merged linked list is: Cookie support is required to access HackerRankSeems like cookies are disabled on this browser, please enable them to open this website |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |