5 BastterCode semana 19 - 28. Implement strStr() comentada em 24/08/2023 18:25 Tecnologia FlyCavok em 04/07/23 20:37 comentada em 24/08/2023 18:25 Mais um desafio semanal. Não me apareçam aqui usando substring pré-pronto, que eu to cheio de voadora atômica na carteira!!!Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Example 1:Input: haystack = "sadbutsad", needle = "sad"Output: 0Explanation: "sad" occurs at index 0 and 6.The first occurrence is at index 0, so we return 0.Example 2:Input: haystack = "leetcode", needle = "leeto"Output: -1Explanation: "leeto" did not occur in "leetcode", so we return -1. Constraints:1 <= haystack.length, needle.length <= 104haystack and needle consist of only lowercase English characters.Link: Explore - LeetCode