René's URL Explorer Experiment


Title: #671 - Second Minimum Node In a Binary Tree - LeetCode JavaScript Solutions

Open Graph Title: #671 - Second Minimum Node In a Binary Tree - LeetCode JavaScript Solutions

X Title: #671 - Second Minimum Node In a Binary Tree - LeetCode JavaScript Solutions

Description: Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero ...

Open Graph Description: Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero ...

X Description: Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero ...

Keywords:

Opengraph URL: https://leetcodejavascript.com/solutions/second-minimum-node-in-a-binary-tree

direct link

Domain: leetcodejavascript.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"Code","url":"https://leetcodejavascript.com/solutions/second-minimum-node-in-a-binary-tree","name":"#671 - Second Minimum Node In a Binary Tree - LeetCode JavaScript Solutions","description":"Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero ...","programmingLanguage":"JavaScript","codeRepository":"https://github.com/JoshCrozier/leetcode-javascript","codeSampleType":"JavaScript","text":"/**\n * Definition for a binary tree node.\n * function TreeNode(val, left, right) {\n * this.val = (val===undefined ? 0 : val)\n * this.left = (left===undefined ? null : left)\n * this.right = (right===undefined ? null : right)\n * }\n */\n/**\n * @param {TreeNode} root\n * @return {number}\n */\nvar findSecondMinimumValue = function(root) {\n return root ? (n => n === Infinity ? -1 : n)(traverse(root, root.val)) : -1;\n function traverse(node, min) {\n if (!node) return Infinity;\n if (node.val > min) return node.val;\n return Math.min(traverse(node.left, min), traverse(node.right, min));\n }\n};","keywords":"LeetCode 671, #671 - Second Minimum Node In a Binary Tree, Easy, JavaScript solution","learningResourceType":"Code","isAccessibleForFree":true,"educationalLevel":"intermediate","interactivityType":"mixed"}

authorLeetCodeJavascript.com
og:typearticle
og:imagehttps://leetcodejavascript.com/og-image.jpg
og:site_nameLeetCode JavaScript Solutions
twitter:cardsummary_large_image
twitter:urlhttps://leetcodejavascript.com/solutions/second-minimum-node-in-a-binary-tree
twitter:imagehttps://leetcodejavascript.com/og-image.jpg
twitter:creator@joshcrozier
theme-color#1f2937

Links:

LeetCodeJavascript.com https://leetcodejavascript.com/
Star on GitHubhttps://github.com/JoshCrozier/leetcode-javascript
Back to all solutionshttps://leetcodejavascript.com
View on LeetCode https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/
View on GitHubhttps://github.com/JoshCrozier/leetcode-javascript/blob/master/solutions/0671-second-minimum-node-in-a-binary-tree.js
Depth-First Search https://leetcodejavascript.com/tags/depth-first-search
Tree https://leetcodejavascript.com/tags/tree
Binary Treehttps://leetcodejavascript.com/tags/binary-tree
Josh Crozierhttps://joshcrozier.com

Viewport: width=device-width,initial-scale=1

Robots: index, follow


URLs of crawlers that visited me.