|  | 
|  | 
| back to board | If you have no idea  know why memory limit exceed C++.  I was using recursive DFS. vector <vector<int> >.   I forgot to pass graph vector by reference and got MLE#8. After noticing that I am passing graph vector by value and simply adding an ampersand before vector name AC 1MB memory used.
 Edited by author 03.07.2017 15:43
 | 
 | 
|