mandliya / algorithms_and_data_structures

180+ Algorithm & Data Structure Problems using C++
GNU General Public License v2.0
5.93k stars 1.32k forks source link

Changed Entry condition of spiral_print_matrix() #201

Open HarshPanchal18 opened 2 years ago

HarshPanchal18 commented 2 years ago

It is not printing the middle element in case of 3 X 3 matrix e.x. 1 2 3 8 9 4 7 6 5

Gives => 1 2 3 4 5 6 7 8