โ† Infosys questions
CodingEasyReported in a candidate post, Jul 2022

Add a new node in a linked list

Filed under Infosys

Given the head of a singly linked list and an integer `val`, write a function to create a new node containing `val` and insert it at the end (tail) of the list, returning the modified head.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Infosys questions

Collected from public candidate posts and coding forums. Updated Nov 2026.