Sunday, 18 October 20262:01 pm ISTIndia edition

सच, सीधे आप तक

Book ad space

Just in

Tech

Construct a linked list from 2D matrix

Image: Geeksforgeeks. Rights remain with the publisher.

Given a Matrix mat of n*n size. Your task is to construct a 2D linked list representation of the given matrix. Every node of the constructed linked list should have two pointers, right and down.

Your function need to return pointer or reference to the linked list node corresponding to mat[0][0].Examples:Input: mat = [[1 2 3],

Read the full report on Geeksforgeeks

Story file

Section
Tech
First reported by
Geeksforgeeks
Reporter
geeksforgeeks
Published
Sunday, 18 October 2026, 12:01 am IST
Coverage
One outlet so far

How this page works. The Headline Update lists this report from Geeksforgeeks with a short summary and a link to the original. The original reporting and photograph belong to the publisher. Spotted an error in our summary? Tell our corrections desk.

Related stories

More Tech news

See all