Rakeshgombi / Hactoberfest-2021

Repository for Hactoberfest
https://hacktoberfest.digitalocean.com/
22 stars 90 forks source link

Added solution of Array #19

Closed dhirajgupta12 closed 3 years ago

dhirajgupta12 commented 3 years ago

Spiral Display

  1. You are given a number n, representing the number of rows.
  2. You are given a number m, representing the number of columns.
  3. You are given n*m numbers, representing elements of 2d array a.
  4. You are required to traverse and print the contents of the 2d array in form of a spiral.