Question: ) Write a Java code for a method makeMyList which creates a singly linked list for PS) For example: makeMyList (3) represents a SLL
) Write a Java code for a method "makeMyList" which creates a singly linked list for PS) For example: makeMyList (3) represents a SLL contains F(3), F(2), F(1) and F(0), so it will return 2 10 You can use the SLL Java class or any other classes we used in our labs. public SLL makeMyList (int n) { (additional 10 points bonus) If you can implement makeMyList() recursively.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
