Set prev=head End the while loop Set tmp = tail Set curr = prev's next Set curr = tmp Set prev= curr 7 Set tail head 8 S

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Set prev=head End the while loop Set tmp = tail Set curr = prev's next Set curr = tmp Set prev= curr 7 Set tail head 8 S

Post by answerhappygod »

Set Prev Head End The While Loop Set Tmp Tail Set Curr Prev S Next Set Curr Tmp Set Prev Curr 7 Set Tail Head 8 S 1
Set Prev Head End The While Loop Set Tmp Tail Set Curr Prev S Next Set Curr Tmp Set Prev Curr 7 Set Tail Head 8 S 1 (30.58 KiB) Viewed 25 times
Set prev=head End the while loop Set tmp = tail Set curr = prev's next Set curr = tmp Set prev= curr 7 Set tail head 8 Set head = tmp 9 Set tail's next = null 10 Start a while loop that runs as long as curr is not null 11 Set tmp = curr's next 12 Set curr's next = prev 1 2 3 4 5 6
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply