Write an algorithm that swaps (exchanges) two nodes in a list. The nodes are identified by number and are passed as parameters. For example, to exchange nodes 5 and 8, you would call swap (5, 8). If the exchange is successful, the algorithm is to return true. If it encounters an error, such as an invalid node number, it returns false. Use linked list implementation.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here