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/zigzag-iterator - #281 - Zigzag Iterator - LeetC.

site address: leetcodejavascript.com/solutions/zigzag-iterator redirected to: leetcodejavascript.com/solutions/zigzag-iterator

site title: #281 - Zigzag Iterator - LeetCode JavaScript Solutions

Our opinion (on Thursday 19 November 2026 5:11:46 UTC):

GREEN status (no comments) - no comments

Meta tags:
description=Given two vectors of integers v1 and v2, implement an iterator to return their elements alternately. Implement the ZigzagIterator class: Zi...;
keywords=leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions;
author=;

Headings (most frequently used words):

281, zigzag, iterator, problem, description, solution,

Text of the page (most frequently used words):
zigzagiterator (8), this (8), the (8), queue (7), iterator (7), length (4), returns (4), next (4), vector (4), index (4), and (4), integer (3), function (3), push (3), hasnext (3), return (3), int (3), leetcodejavascript (2), com (2), param (2), boolean (2), prototype (2), const (2), value (2), element (2), elements (2), list (2), two (2), vectors (2), implement (2), view (2), github (2), leetcode (2), 281 (2), zigzag (2), solutions (2), 2025, josh, crozier, constructor, var, shift, solution, current, moves, true, still, has, false, otherwise, initializes, object, with, class, given, integers, their, alternately, problem, description, design, array, medium, back, all, star, javascript,


Text of the page (random words):
281 zigzag iterator leetcode javascript solutions leetcodejavascript com star on github back to all solutions 281 zigzag iterator medium view on leetcode view on github array design queue iterator problem description given two vectors of integers v1 and v2 implement an iterator to return their elements alternately implement the zigzagiterator class zigzagiterator list int v1 list int v2 initializes the object with the two vectors v1 and v2 boolean hasnext returns true if the iterator still has elements and false otherwise int next returns the current element of the iterator and moves the iterator to the next element solution constructor param integer v1 param integer v2 var zigzagiterator function zigzagiterator v1 v2 this queue if v1 length this queue push v1 0 if v2 length this queue push v2 0 this zigzagiterator returns boolean zigzagiterator prototype hasnext function hasnext return this queue length 0 this zigzagiterator returns integer zigzagiterator prototype next function next const vector index this queue shift const value vector index if index 1 vector length this queue push vector index 1 return value 2025 leetcodejavascript com josh crozier
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

    No Images


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

    1-5


    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 05:11:46 GMT
    Content-Type text/html; charset=UTF-8
    Transfer-Encoding chunked
    Connection close
    Location htt????/leetcodejavascript.com/solutions/zigzag-iterator
    Report-To group : cf-nel , max_age :604800, endpoints :[ url : htt????/a.nel.cloudflare.com/report/v4?s=XMHmnvVjrSQefGyP10F%2B3kDiOYjo%2BtVJFJpiCnbsgTNfRqK6pGMe%2BOsb4xh5M75rXubcrPSRfk3lrPJGOy%2BL4R7whRy1dH8LrlzVbxnDc9%2B5%2FQrQDwLBs2obZ4Vcp5lvhOdJ%2B8uzREi%2B ]
    Nel report_to : cf-nel , success_fraction :0.0, max_age :604800
    Server cloudflare
    CF-RAY a5ccb7537bb7931d-AMS
    alt-svc h3= :443 ; ma=86400
    HTTP/2 200
    date Thu, 19 Nov 2026 05:11:46 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=rdHgKAHPzpMUXgTfezI1jU0SPs3JVe%2BuyRQgowWSS0ICarzFdMd%2FJfOGisaHzXFnsA2r6dfmc3p2z5rOUx%2FEbWVrKeEdfFL0Ww%2Fe%2B2d36yNHxIYp5Az1yagecsnjrEAyTWPeTgqHK9pp ]
    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 05:11:46 GMT
    cf-cache-status MISS
    content-encoding gzip
    cf-ray a5ccb753b8f2d0a7-CDG
    alt-svc h3= :443 ; ma=86400

    Meta Tags

    title="#281 - Zigzag Iterator - LeetCode JavaScript Solutions"
    charset="UTF-8"
    name="viewport" content="width=device-width, initial-scale=1.0"
    name="description" content="Given two vectors of integers v1 and v2, implement an iterator to return their elements alternately. Implement the ZigzagIterator class: Zi..."
    name="keywords" content="leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions"
    name="author" content="LeetCodeJavascript.com"
    name="robots" content="index, follow"
    property="og:type" content="article"
    property="og:url" content="htt????/leetcodejavascript.com/solutions/zigzag-iterator"
    property="og:title" content="#281 - Zigzag Iterator - LeetCode JavaScript Solutions"
    property="og:description" content="Given two vectors of integers v1 and v2, implement an iterator to return their elements alternately. Implement the ZigzagIterator class: Zi..."
    property="og:image" content="htt????/leetcodejavascript.com/og-image.jpg"
    property="og:site_name" content="LeetCode JavaScript Solutions"
    name="twitter:card" content="summary_large_image"
    name="twitter:url" content="htt????/leetcodejavascript.com/solutions/zigzag-iterator"
    name="twitter:title" content="#281 - Zigzag Iterator - LeetCode JavaScript Solutions"
    name="twitter:description" content="Given two vectors of integers v1 and v2, implement an iterator to return their elements alternately. Implement the ZigzagIterator class: Zi..."
    name="twitter:image" content="htt????/leetcodejavascript.com/og-image.jpg"
    name="twitter:creator" content="@joshcrozier"
    name="theme-color" content="#1f2937"

    Load Info

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