Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

To Display Spiral Matrix (GFG) #1830

Closed yellowberard closed 2 years ago

yellowberard commented 3 years ago

Aim

Given a matrix of size r*c. Traverse the matrix in spiral form. link to the Question:- https://practice.geeksforgeeks.org/problems/spirally-traversing-a-matrix-1587115621/1# Details We have given a matrix and we have to display it's spiral form. For Example:- Input: r = 4, c = 4 matrix[][] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15,16}} Output: 1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10

Programming language

yellowberard commented 3 years ago

@ravikr126 Please assign me this issue under LGM-SOC'21. I will add the solution in C++

Sathwika-02 commented 3 years ago

Hi, I want to implement this in java as apart of LGM-SOC'21. @ravikr126 @Amit366 Please assign it to me. Thankyou!!