mirror of
https://github.com/20kaushik02/leetcode-gulag.git
synced 2025-12-06 09:34:07 +00:00
13 lines
281 B
C++
13 lines
281 B
C++
#include "soln.hpp"
|
|
|
|
int main()
|
|
{
|
|
int numCourses = 4;
|
|
vector<vector<int>> prerequisites{{0, 1}, {0, 2}, {3, 0}};
|
|
Solution soln;
|
|
cout << "Ordering of courses:" << endl;
|
|
for (int num : soln.findOrder(numCourses, prerequisites))
|
|
cout << "->" << num;
|
|
cout << endl;
|
|
return 0;
|
|
} |