Below are the questions that were asked -
1) Find all the connected components in a graph
2) Add two linked lists and return the sum as a linked list
We discussed the algorithm first and then I had to code for both these questions. Further, the interviewer modified the first question to find unique connected components.
I wasn't able to come up with a solution for that.
follow up:
https://leetcode.com/problems/number-of-distinct-islands/