Day 8 of LeetCode Challenge
Problem 1: Find the first occurrence in a string
Link to the problem: https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/
class Solution {
public int strStr(String haystack, String needle) {
if(h...
tusharpant.hashnode.dev2 min read