Find the index of the first occurrence in a string | Leetcode 28 |

Опубликовано: 10 Май 2026
на канале: Techie Praveen
215
2

Find the index of the first occurrence in a string | Leetcode 28 | Leetcode Problem 28


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.

In this video, I have tried to explained one of the famous Java Interview Question: Write a program to Find the index of the first occurrence in a string



#sdet #techiepraveen #softwaretesting #selenium #java #automationtesting #javainterviewquestionsanswers #testautomation #seleniumwebdriver #java #interview

In this series i have tried to covers Frequently asked Interview questions related to Java mostly for Software Tester roles/SDET.



Note: 50% of this channel earning is used for animal welfare



Thank you,

Praveen Prakash


Frequently Asked Java Interview Questions for SDET:- https://shorturl.at/mXzbp

Cypress Complete Playlist:- https://rb.gy/1myhj

Selenium Playlist:- https://rb.gy/xdkzg

Manual Testing Material:- https://rb.gy/ya6jj
.

You can also follow me on:


Twitter handle:   / techiepraveen1  
Website:- https://techiepraveen.graphy.com/
Instagram:-   / techiepraveen90