René's URL Explorer Experiment


Title: #163 - Missing Ranges - LeetCode JavaScript Solutions

Open Graph Title: #163 - Missing Ranges - LeetCode JavaScript Solutions

X Title: #163 - Missing Ranges - LeetCode JavaScript Solutions

Description: You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are within the inclusive range. A...

Open Graph Description: You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are within the inclusive range. A...

X Description: You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are within the inclusive range. A...

Keywords:

Opengraph URL: https://leetcodejavascript.com/solutions/missing-ranges

direct link

Domain: leetcodejavascript.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"Code","url":"https://leetcodejavascript.com/solutions/missing-ranges","name":"#163 - Missing Ranges - LeetCode JavaScript Solutions","description":"You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are within the inclusive range. A...","programmingLanguage":"JavaScript","codeRepository":"https://github.com/JoshCrozier/leetcode-javascript","codeSampleType":"JavaScript","text":"/**\n * @param {number[]} nums\n * @param {number} lower\n * @param {number} upper\n * @return {number[][]}\n */\nvar findMissingRanges = function(nums, lower, upper) {\n  const result = [];\n  let prev = lower - 1;\n\n  for (let i = 0; i <= nums.length; i++) {\n    const curr = i < nums.length ? nums[i] : upper + 1;\n    if (curr - prev > 1) {\n      result.push([prev + 1, curr - 1]);\n    }\n    prev = curr;\n  }\n\n  return result;\n};","keywords":"LeetCode 163, #163 - Missing Ranges, 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/missing-ranges
twitter:imagehttps://leetcodejavascript.com/og-image.jpg
twitter:creator@joshcrozier
theme-color#1f2937

Links:

LeetCodeJavascript.com https://leetcodejavascript.com/
Star on GitHub https://github.com/JoshCrozier/leetcode-javascript
Back to all solutions https://leetcodejavascript.com
View on LeetCode https://leetcode.com/problems/missing-ranges/
View on GitHub https://github.com/JoshCrozier/leetcode-javascript/blob/master/solutions/0163-missing-ranges.js
Array https://leetcodejavascript.com/tags/array
Josh Crozierhttps://joshcrozier.com

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

Robots: index, follow


URLs of crawlers that visited me.