Hi guys, I'm wondering how could I improve my code in terms of "concept" to solve the problem in optimal way and in creative concept.
for example if I have string "that there at there" and substring is "th" then the output is removing from string the substring "th", i.e the output in this case is "at ere at ere" .
what I'm thinking about is like this:
I find the length of substring lets assume it's 2 in my upper example,
and then simultaneously I run on the "string" itself which increasing and jumping i by two, whenever I arrive to char which isn't found on substring then I put it into another array , at the end I print the "another" array which I was modifying.
I guess that's bad thinking and it's a pleasure by you guys to hear your ideas for solving my problem.
by the way I'm not requiring to code a code instead of me, just need from ya clearing out your concept of how you solve that problem.
thanks in advance.