Write a method, truncate (i), that truncates a DLList at position i 1 answer below »

Write a method, truncate (i), that truncates a DLList at position i. After executing this method, the size of the list will be i and it should contain only the elements at indices 0,…, i − 1. The return value is another DLList that contains the elements at indices i,…, n − 1. This method should run in
O(min{i, n − i}) time.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.