Welcome to the daily solving of our PROBLEM OF THE DAY with Saurabh Bansal We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Linked List but also build up problem-solving skills.
Given a Matrix mat of n*n size. Your task is constructing a 2D linked list representation of the given matrix.
Input: mat = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Output:
Give the problem a try before going through the video. All the best!!!
Problem Link: https://practice.geeksforgeeks.org/problems/linked-list-matrix/1