Hello coders, I’m new to this site and i was just starting up with this TRAINSET problem. I don’t have much C++ coding experience but i do know the basics. I have tried to solve the problem using only the iostream and string header files. I made a code, but it keeps on giving me the Time Limit Exceeded error. I went through the other results and found them using vectors and stuffs. I haven’t yet studied that. So is there any way I can make my program more efficient using this code?
Thanks in advance!