cpp code to generate test cases for some question from this list to debug the incorrect solution and know where your appraoch will not work.
to know more about testing your solution in linux checkout this video
test generator files for some questions which can be used for debugging purpose.
C++