Finance interview questions shared by candidates
Linked list memory management: deleting a node from the middle of a list was easy. Next question - how to delete a node from the end of a list. Was too tired to think and realize this was a trick question.
You can't, since the pointer already points to null. No way around it.
Disagree, Instead of 1 use 2 pointers, having pointer 1 one step ahead of pointer 2, once pointer 1 points to NULL, use pointer 2 to remove the last node.
It depends. on how the link-list is implemented.
See Interview Questions for Similar Jobs
- Software Engineer Intern
- Software Engineer
- Software Developer
- Software Engineering Intern
- Financial Software Developer
- Senior Software Engineer
- Technology Analyst
- Senior Software Developer
- Software Development Engineer
- Summer Analyst