If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: leetcodejavascript.com/solutions/implement-strstr - #28 - Implement strStr() - Lee.

site address: leetcodejavascript.com/solutions/implement-strstr redirected to: leetcodejavascript.com/solutions/implement-strstr

site title: #28 - Implement strStr() - LeetCode JavaScript Solutions

Our opinion (on Thursday 19 November 2026 4:42:53 UTC):

GREEN status (no comments) - no comments

Meta tags:
description=Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we retu...;
keywords=leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions;
author=;

Headings (most frequently used words):

28, implement, strstr, problem, description, solution,

Text of the page (most frequently used words):
needle (8), string (6), return (6), haystack (5), strstr (4), split (4), the (3), this (3), leetcodejavascript (2), com (2), param (2), length (2), problem (2), when (2), empty (2), view (2), github (2), leetcode (2), implement (2), solutions (2), 2025, josh, crozier, number, var, function, const, solution, for, purpose, will, consistent, and, java, indexof, what, should, great, question, ask, during, interview, clarification, index, first, occurrence, not, part, description, matching, two, pointers, easy, back, all, star, javascript,


Text of the page (random words):
28 implement strstr leetcode javascript solutions leetcodejavascript com star on github back to all solutions 28 implement strstr easy view on leetcode view on github string two pointers string matching problem description return the index of the first occurrence of needle in haystack or 1 if needle is not part of haystack clarification what should we return when needle is an empty string this is a great question to ask during an interview for the purpose of this problem we will return 0 when needle is an empty string this is consistent to c s strstr and java s indexof solution param string haystack param string needle return number var strstr function haystack needle if needle return 0 const split haystack split needle return split length 1 split 0 length 1 2025 leetcodejavascript com josh crozier
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

    No Images


    Verified site has: 4 subpage(s). Do you want to verify them? Verify pages:

    1-4


    The site also has 3 references to external domain(s).

     github.com  Verify  leetcode.com  Verify  joshcrozier.com  Verify


    The site also has 1 references to other resources (not html/xhtml )

     github.com/JoshCrozier/leetcode-javascr___.js  Verify


    Top 50 hastags from of all verified websites.

    Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

    Header

    HTTP/1.1 301 Moved Permanently
    Date Thu, 19 Nov 2026 04:42:53 GMT
    Content-Type text/html; charset=UTF-8
    Transfer-Encoding chunked
    Connection close
    Location htt????/leetcodejavascript.com/solutions/implement-strstr
    Report-To group : cf-nel , max_age :604800, endpoints :[ url : htt????/a.nel.cloudflare.com/report/v4?s=2jrb%2FPU7SQFcot0Z7Jf21POZkkSYyqiJPk8LkAUAF3VZqj3LlFA8cOwFn8vEz9sF2lPHNZnlucZZjCH6SIbANYaGT1GsrCr2O9nWeGCTL15UmFsYTo5XNEcUvhyTn6yl%2F3uCfHmuPaOd ]
    Nel report_to : cf-nel , success_fraction :0.0, max_age :604800
    Server cloudflare
    CF-RAY a5cc8d030988b987-AMS
    alt-svc h3= :443 ; ma=86400
    HTTP/2 200
    date Thu, 19 Nov 2026 04:42:53 GMT
    content-type text/html; charset=utf-8
    x-frame-options DENY
    report-to group : cf-nel , max_age :604800, endpoints :[ url : htt????/a.nel.cloudflare.com/report/v4?s=p70tsrISHrNEK333%2BmPhJQ2rQamZpK%2FfwyV6PleJIWaDVBYyka%2FDB%2FFM%2FmCLb62w1CfSxILLN8b%2BHUXyTVlQvuq4jXn%2FvpljnwyabcOW9miFmSsnoN8jaMfOkNtuwsX%2FqmsOfASgkI9Y ]
    nel report_to : cf-nel , success_fraction :0.0, max_age :604800
    access-control-allow-origin htt????/leetcodejavascript.com
    cache-control public, max-age=14400, must-revalidate
    x-content-type-options nosniff
    strict-transport-security max-age=31536000
    permissions-policy geolocation=(), microphone=(), camera=(), payment=(), usb=(), accelerometer=(), gyroscope=(), magnetometer=()
    referrer-policy no-referrer
    vary accept-encoding
    server cloudflare
    last-modified Thu, 19 Nov 2026 04:42:53 GMT
    cf-cache-status MISS
    content-encoding gzip
    cf-ray a5cc8d037f881c10-AMS
    alt-svc h3= :443 ; ma=86400

    Meta Tags

    title="#28 - Implement strStr() - LeetCode JavaScript Solutions"
    charset="UTF-8"
    content="width=device-width,initial-scale=1" name="viewport"
    content="Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we retu..." name="description"
    content="leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions" name="keywords"
    content="LeetCodeJavascript.com" name="author"
    content="index, follow" name="robots"
    content="article" property="og:type"
    content="htt????/leetcodejavascript.com/solutions/implement-strstr" property="og:url"
    content="#28 - Implement strStr() - LeetCode JavaScript Solutions" property="og:title"
    content="Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we retu..." property="og:description"
    content="htt????/leetcodejavascript.com/og-image.jpg" property="og:image"
    content="LeetCode JavaScript Solutions" property="og:site_name"
    content="summary_large_image" name="twitter:card"
    content="htt????/leetcodejavascript.com/solutions/implement-strstr" name="twitter:url"
    content="#28 - Implement strStr() - LeetCode JavaScript Solutions" name="twitter:title"
    content="Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we retu..." name="twitter:description"
    content="htt????/leetcodejavascript.com/og-image.jpg" name="twitter:image"
    content="@joshcrozier" name="twitter:creator"
    content="#1f2937" name="theme-color"

    Load Info

    page size2533
    load time (s)0.158206
    redirect count1
    speed download16031
    server IP 188.114.97.0
    * all occurrences of the string "http://" have been changed to "htt???/"