finds the index of a given substring if it exists, otherwise returns -1.
-
Updated
Nov 21, 2021 - Java
finds the index of a given substring if it exists, otherwise returns -1.
Add a description, image, and links to the leetcode-strstr topic page so that developers can more easily learn about it.
To associate your repository with the leetcode-strstr topic, visit your repo's landing page and select "manage topics."