Lakhankumawat / LearnCPP

Learn Cpp from Beginner to Advanced ✅ Practice 🎯 Code 💻 Repeat 🔁 One step solution for c++ beginners and cp enthusiasts.
https://lakhankumawat.github.io/LearnCPP/
MIT License
598 stars 484 forks source link

Spiral Traversal of Matrix #1555

Closed mugdhaPandey closed 2 years ago

mugdhaPandey commented 2 years ago

Description

Given a matrix, print the matrix in spiral order. Input: mat[ ][ ] = { { 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 }

The output of given matrix in spiral form.

Domain

CPP

Type of Contribution

Addition

Code of Conduct

github-actions[bot] commented 2 years ago

Hello @mugdhaPandey, thanks for creating your first issue at LearnCPP, hope you followed the guidelines.

mugdhaPandey commented 2 years ago

/assign

github-actions[bot] commented 2 years ago

This issue has been assigned to mugdhaPandey! It will become unassigned if it is not closed within 12 days. A maintainer can also add the pinned label to prevent it from being unassigned.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 5 days with no activity. Please reopen this issue if not resolved.