Delhivery
Delhivery

Java Full Stack Developer

Linked List Connected Components

Medium
TechnicalcodingCandidate Not Selected

You are given the head of a linked list and an integer array nums. Return the number of connected components formed by nodes whose values appear in nums. Example: Input: head = [0,1,2,3], nums = [0,1,3] → Output: 2

This question was asked in

Delhivery Java Full Stack Developer Interview Experience

The interview process at Delhivery consisted of two rounds focused on technical skills and low-level design. Candidates faced a variety of questions ranging from architecture choices to coding challenges and database design concepts. The overall difficulty was medium, with a blend of theoretical and practical questions that tested both knowledge and application skills.

AI Powered

Share Your Story

Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.

Mock Interviews & 1:1 Guidance

Practice mock interviews or book a 1:1 call for career guidance, resume reviews, and more.

Show Your Love!

Connect with us on social media

Linked List Connected Components | Delhivery Interview Question | InterviewRecap