Here are the key steps to insert a new node into a linked list:
1. Check for available memory (node)
2. Create the new node and set its data
3. If inserting at head, update head pointer; else insert after the given node by updating next pointers.
4. Return