spiral-matrix 1.0.0
Spiral Matrix
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 46 of file main.cpp.

47{
48 vector<vector<int>> matrix = {{1,2,3}, {4,5,6}, {7,8,9}};
49 vector<int> answer = Solution().spiralOrder(matrix);
50 for (int element: answer)
51 cout << element << " ";
52 cout << endl;
53 return 0;
54}
vector< int > spiralOrder(vector< vector< int > > &matrix)
Definition main.cpp:8

References Solution::spiralOrder().