Question: please this should be in java language. 2. Adjusting to the Market 6 6 6 ALL 64 65 66 67 68 69 70 At Box,
please this should be in java language.



2. Adjusting to the Market 6 6 6 ALL 64 65 66 67 68 69 70 At Box, we make sure we have a well-planned upcoming quarter of work with many improvements for our customers and users. We're prioritizing our work as a linked list with the head of the list having the highest priority. However, sometimes the market changes quickly and we aim to adapt to the new requirements. This means, we have to adjust our plan for the next quarter by replacing pur list. Solve question 2 Consider two 1-indexed linked lists, list1 (planned work items for the upcoming quarter) and list2 (new items to replace deprioritized work), and two integers, a and b(start and end of work items to be replaced). Merge the two lists by removing the ath through bth nodes in list1 and inserting list in their place. In other words: NO 71 72 73 SPARE 3 75 76 77 list initiat = listy lista --- listo - listin list2 - list21 - list22-...-list2m list merged = list! list1---list2,- list2m-listor ----- listin 78 79 80 81 82 83 84 Test Resu Example a = 2 (start node index) b = 3(end node index) list 1 = 1-2-3-4-5 list 2 = 6-7-8-9 e & e - WOJEWOOD 3 DJ- e st 3. Function Description Complete the function mergeInBetween in the editor below. mergelnBetween has the following parameter(s); listi: reference to the head of a linked list of nintegers list2: reference to the head of a linked list of mintegers int a: the start node index for the replaced segment int b: the end node index for the replaced segment 2 3 Returns reference to a singlyLinked ListNode: the head of list after merging as described Constraints 1 sn m s 105 1 Sasban 1 s list10] 10%, where it sis) 1 s list20)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
