You are viewing a single comment's thread. Return to all comments →
for(int i=0;i<s.length()&&((s.length()-(i-1))>(a.length()-j));i++)
adding this statement as replacement of above can save few ms. I can say ns probably :p
HackerRank in a String!
You are viewing a single comment's thread. Return to all comments →
adding this statement as replacement of above can save few ms. I can say ns probably :p