Closed ishu9bansal closed 2 months ago
Split the code into multiple files for separation of concerns
solution.h only handles the code required to run the specific leetcode problem we are testing it on.
solution.h
graph.h file has the graph class only
graph.h
main.cpp file handles the actual run of the soution class and input/output handling
main.cpp
Also committed the output file to verify if we have made any mistakes. Output file should not change if we change our solution strategy.
Split the code into multiple files for separation of concerns
solution.h
only handles the code required to run the specific leetcode problem we are testing it on.graph.h
file has the graph class onlymain.cpp
file handles the actual run of the soution class and input/output handlingAlso committed the output file to verify if we have made any mistakes. Output file should not change if we change our solution strategy.