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/split-bst - #776 - Split BST - LeetCode Ja.

site address: leetcodejavascript.com/solutions/split-bst redirected to: leetcodejavascript.com/solutions/split-bst

site title: #776 - Split BST - LeetCode JavaScript Solutions

Our opinion (on Wednesday 18 November 2026 23:20:33 UTC):

GREEN status (no comments) - no comments

Meta tags:
description=Given the root of a binary search tree (BST) and an integer target, split the tree into two subtrees where the first subtree has nodes that ...;
keywords=leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions;
author=;

Headings (most frequently used words):

776, split, bst, problem, description, solution,

Text of the page (most frequently used words):
the (17), root (11), tree (9), target (9), left (6), right (6), val (5), return (5), smaller (5), binary (4), null (4), larger (4), split (4), node (3), treenode (3), this (3), undefined (3), splitbst (3), two (3), are (3), subtree (3), bst (3), that (3), all (3), value (3), leetcodejavascript (2), com (2), for (2), function (2), param (2), const (2), subtrees (2), original (2), should (2), with (2), parent (2), search (2), has (2), nodes (2), view (2), github (2), leetcode (2), 776 (2), solutions (2), 2025, josh, crozier, definition, number, var, else, solution, array, roots, order, additionally, most, structure, remain, formally, any, child, they, both, same, after, then, still, have, given, and, integer, into, where, first, equal, while, second, greater, than, not, necessarily, case, contains, problem, description, recursion, medium, back, star, javascript,


Text of the page (random words):
776 split bst leetcode javascript solutions leetcodejavascript com star on github back to all solutions 776 split bst medium view on leetcode view on github tree binary tree recursion binary search tree problem description given the root of a binary search tree bst and an integer target split the tree into two subtrees where the first subtree has nodes that are all smaller or equal to the target value while the second subtree has all nodes that are greater than the target value it is not necessarily the case that the tree contains a node with the value target additionally most of the structure of the original tree should remain formally for any child c with parent p in the original tree if they are both in the same subtree after the split then node c should still have the parent p return an array of the two roots of the two subtrees in order solution definition for a binary tree node function treenode val left right this val val undefined 0 val this left left undefined null left this right right undefined null right param treenode root param number target return treenode var splitbst function root target if root return null null if root val target const smaller larger splitbst root right target root right smaller return root larger else const smaller larger splitbst root left target root left larger return smaller root 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 Wed, 18 Nov 2026 23:20:33 GMT
    Content-Type text/html; charset=UTF-8
    Transfer-Encoding chunked
    Connection close
    Location htt????/leetcodejavascript.com/solutions/split-bst
    Report-To group : cf-nel , max_age :604800, endpoints :[ url : htt????/a.nel.cloudflare.com/report/v4?s=9MBjyCp%2B2scJ2HB4eH%2BxrFSNd0q5nJDksKBmPAUdR3IwoiVFxwMTs%2Bvgu2ICfsV7X4QOo9BhDFb7LF18KHDQomkM%2FwvBvKHN89M11JYZ5G%2Fvj%2Fv1ZZ3uIc9GWxqrG%2B9jO9qsu6laBgRG ]
    Nel report_to : cf-nel , success_fraction :0.0, max_age :604800
    Server cloudflare
    CF-RAY a5cab4d67b780e89-AMS
    alt-svc h3= :443 ; ma=86400
    HTTP/2 200
    date Wed, 18 Nov 2026 23:20:33 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=A1OkSLqwRlBgR3kPX581VsOtcDQsetiO6rWhRLZfq9fx3Wdt3xN%2B6HQ2rQSmdgfXAJTarZOktUeqYjSLkw4IUWsdzZzdFo7aVGT%2BNjsAL%2BNasjir8YwsZQR1q%2BF4wi%2BI7YMF9hjQ26Oy ]
    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 Wed, 18 Nov 2026 23:20:33 GMT
    cf-cache-status MISS
    content-encoding gzip
    cf-ray a5cab4d6eb02dfa7-AMS
    alt-svc h3= :443 ; ma=86400

    Meta Tags

    title="#776 - Split BST - LeetCode JavaScript Solutions"
    charset="UTF-8"
    name="viewport" content="width=device-width, initial-scale=1.0"
    name="description" content="Given the root of a binary search tree (BST) and an integer target, split the tree into two subtrees where the first subtree has nodes that ..."
    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/split-bst"
    property="og:title" content="#776 - Split BST - LeetCode JavaScript Solutions"
    property="og:description" content="Given the root of a binary search tree (BST) and an integer target, split the tree into two subtrees where the first subtree has nodes that ..."
    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/split-bst"
    name="twitter:title" content="#776 - Split BST - LeetCode JavaScript Solutions"
    name="twitter:description" content="Given the root of a binary search tree (BST) and an integer target, split the tree into two subtrees where the first subtree has nodes that ..."
    name="twitter:image" content="htt????/leetcodejavascript.com/og-image.jpg"
    name="twitter:creator" content="@joshcrozier"
    name="theme-color" content="#1f2937"

    Load Info

    page size2930
    load time (s)0.170979
    redirect count1
    speed download17235
    server IP 188.114.96.0
    * all occurrences of the string "http://" have been changed to "htt???/"