Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
algorithm
algorithm
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
phanipep
New Member
Join Date:
Dec 2007
Posts:
38
#1
algorithm
Dec 4 '07, 07:49 AM
Write an algorithm to insert a node before a given node in a linked list?
smalpani
New Member
Join Date:
Aug 2007
Posts:
29
#2
Dec 4 '07, 07:53 AM
Originally posted by
phanipep
Write an algorithm to insert a node before a given node in a linked list?
this question always gets you till you know the trick.
Insert the node after the node to which you have a pointer.
Swap the contents of both the node.
Thats it.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment