Question: Problem 2 Linked List: ( 3 5 pis ) Write a function, def convert ( list 1 : LinkedList ) LinkedList: convert ( ) function

Problem 2 Linked List: (35 pis)
Write a function, def convert(list1: LinkedList) LinkedList:
convert() function accepts a linked list of strings, Reverse the order of every group of two elements (NOT nodes). If there ane odd number of elements, the last group is considered reversed.
Run this function with test case:
this function should return 'b?'a''d''c''e'.
Run this function with test case:
Write a function, def find(list2: DoublyLinkedList, n: int) DoublyLinkedList:
insert() function accepts a sorted doubly linked list of integers and an integer, n. If n is in the list, return the number elements that are greater than or equal to n, and the number of elements that are less than n. If n is not in the list, return the original list.
Run this function with the test case:
list2: 1larr3larr4larr8larr9larr10,n=8
This function should return 2,3.
Problem 2 Linked List: ( 3 5 pis ) Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!