[ SOLVED ] My program fail in some cases , how to fix it ?
Here I'm for asking about one of my code. Code : https://code.sololearn.com/c4oIOfzTUeV3/?ref=app CHECK CODE I'VE EXPLAINED THERE IN DETAILS I've checked it for 9 cases, Case1+2+3: When your searching word is present at the starting/middle/ending of the sentence. Case4+5+6: case1/2/3+it is a substring of a word which start that word in sentence. Case7+8+9: case1/2/3+and it is a substring of a word which end that word in sentence. In SoloLearn , Case 3 , 6 and 9 are not giving expected output it fail if the searching word is at end of the sentence , it's working fine in my phone's compiler , an app named CODING C. You can test in CODING C so you can be sure , I'm right. I've posted it in QnA because I wanted to know why this code is not working properly in same cases while working in other compiler . I know it's because there are some restrictions in SoloLearn compilation but I don't know which and how fix ! I've provided the code , read question carefully and give it try. Thanks MARTIAN TAYLOR 🙏