Write a method that takes two string parameters, and tells whether the first is a substring of the second. You can't use
Posted: Mon Jun 06, 2022 5:03 pm
Write a method that takes two string parameters, and tells
whether the first is a substring of the second. You can't use
framework methods that do this for you, such as indexOf(). In other
words, you have to write the loops yourself. But, you can use the
primitive methods such as charAt().
Also analyze the program's performance and state the big-O
complexity of your method.
Provide a screenshot of the code working.
whether the first is a substring of the second. You can't use
framework methods that do this for you, such as indexOf(). In other
words, you have to write the loops yourself. But, you can use the
primitive methods such as charAt().
Also analyze the program's performance and state the big-O
complexity of your method.
Provide a screenshot of the code working.