Question: Use singly linked lists to implement integers of unlimited size. Each node of the list should store one digit of the integer. You should implement
Use singly linked lists to implement integers of unlimited size. Each node of the list should store one digit of the integer. You should implement addition, subtraction, multiplication, and exponentiation operations. Limit exponents to be positive integers. What is the asymptotic running time for each of your operations, expressed in terms of the number of digits for the two operands of each function?
Step by Step Solution
3.25 Rating (143 Votes )
There are 3 Steps involved in it
Implementing integers of unlimited size using singly linked lists means creating a linked list where each node represents a digit of that integer Now ... View full answer
Get step-by-step solutions from verified subject matter experts
