{"id":3511,"date":"2023-05-03T14:44:00","date_gmt":"2023-05-03T14:44:00","guid":{"rendered":"https:\/\/manorinfinity.com\/?p=3511"},"modified":"2023-05-03T14:45:37","modified_gmt":"2023-05-03T14:45:37","slug":"leetcode-series-longest-common-prefix","status":"publish","type":"post","link":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/","title":{"rendered":"LeetCode Series: Longest Common Prefix"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">The <a href=\"https:\/\/leetcode.com\/problems\/longest-common-prefix\/description\/\">Problem<\/a>:<\/h2>\n\n\n\n<p>Write a function to find the longest common prefix string amongst an array of strings.<\/p>\n\n\n\n<p>If there is no common prefix, return an empty string&nbsp;<code>\"\"<\/code>.<\/p>\n\n\n\n<p><strong>Example 1:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Input:<\/strong> strs = [\"flower\",\"flow\",\"flight\"]\n<strong>Output:<\/strong> \"fl\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution:<\/h2>\n\n\n\n<p>This is a question from leetcode. Let me show you the solution and try to explain my approach. In Data Structures and Algorithms this type of problems are known as sliding window problems. If you take a closer look at the example you see the longest common prefix will always be present in the shortest string so, that&#8217;s our first step to get the shortest string from the array. In order to calculate shortestString we use <a href=\"https:\/\/manorinfinity.com\/2022\/06\/25\/javascript-loopers-map-filter-reduce-foreach\/\">reduce<\/a> function instead of while loop or Math.min approach as reduce approach is faster. What we are doing inside reduce is basically comparing the length of curr item with the previous item and if the length is less than what is in the acc we return the item else acc. Then we run a loop from last of the string get the prefix and compare it with each array element again using reduce. But, make sure to put that longestPrefix.length check otherwise you will end up with a random common prefix. And finally we return the prefix. For single element strings we simply return the only element at the top. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Steps:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check if array of string is of length 1. If yes return 0th element of the array<\/li>\n\n\n\n<li>Now to keep the function pure assign strs to new variable arr which we will later modify.<\/li>\n\n\n\n<li>Now get the shortest string by using reduce method<\/li>\n\n\n\n<li>Store the length of shortestString in our counter.<\/li>\n\n\n\n<li>Now filter the arr to exclude the shortestString element for optimisation<\/li>\n\n\n\n<li>Now run the while loop<\/li>\n\n\n\n<li>Get the prefix, compare the prefix again with reduce method and not forgetting longestPrefix.length condition<\/li>\n\n\n\n<li>Finally updating counter and once loop is done return longestPrefix. <\/li>\n\n\n\n<li>Also Find the<a href=\"https:\/\/youtu.be\/gu2JRPMHOQU\"> video for this question here<\/a>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * @param {string&#91;]} strs\n * @return {string}\n *\/\nvar longestCommonPrefix = function(strs) {\n    if(strs.length == 1){\n        return strs&#91;0];\n    }\n    let arr = strs;\n    let shortestString = arr.reduce((acc,item) => acc.length > item.length ? item : acc, arr&#91;0]);\n    let i = shortestString.length;\n    arr = arr.filter(item => item!==shortestString);\n    let longestPrefix = '';\n    while(i>0){\n        let prefix = shortestString.substring(0,i);\n        if(arr.reduce((acc, item) => (acc &amp;&amp; item.substring(0,i) == prefix),true) &amp;&amp; longestPrefix.length &lt; prefix.length){\n            longestPrefix = prefix;\n        }\n        i--;\n    }\n    return longestPrefix;\n};<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The Problem: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string&nbsp;&#8220;&#8221;. Example 1: Input: strs = [&#8220;flower&#8221;,&#8221;flow&#8221;,&#8221;flight&#8221;] Output: &#8220;fl&#8221; The Solution: This is a question from leetcode. Let me show you the solution and&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\">Read the post<span class=\"screen-reader-text\">LeetCode Series: Longest Common Prefix<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":3512,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-infinity-fitness","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.12 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>LeetCode Series: Longest Common Prefix | ManOrInfinity<\/title>\n<meta name=\"description\" content=\"Leetcode series solving leetcode problems. solution to leetcode question. data structures and algorithms. how to find longest common prefix in array of str\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LeetCode Series: Longest Common Prefix\" \/>\n<meta property=\"og:url\" content=\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\" \/>\n<meta property=\"og:site_name\" content=\"ManOrInfinity\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-03T14:44:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-03T14:45:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"manorinfinity\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@manorinfinity\" \/>\n<meta name=\"twitter:site\" content=\"@manorinfinity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"manorinfinity\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\"},\"author\":{\"name\":\"manorinfinity\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"headline\":\"LeetCode Series: Longest Common Prefix\",\"datePublished\":\"2023-05-03T14:44:00+00:00\",\"dateModified\":\"2023-05-03T14:45:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\"},\"wordCount\":326,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"image\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1\",\"articleSection\":[\"Infinity Fitness\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\",\"url\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\",\"name\":\"LeetCode Series: Longest Common Prefix | ManOrInfinity\",\"isPartOf\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1\",\"datePublished\":\"2023-05-03T14:44:00+00:00\",\"dateModified\":\"2023-05-03T14:45:37+00:00\",\"description\":\"Leetcode series solving leetcode problems. solution to leetcode question. data structures and algorithms. how to find longest common prefix in array of str\",\"breadcrumb\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/manorinfinity.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LeetCode Series: Longest Common Prefix\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#website\",\"url\":\"https:\/\/manorinfinity.com\/blog\/\",\"name\":\"ManOrInfinity\",\"description\":\"Thrive towards greatness\",\"publisher\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/manorinfinity.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\",\"name\":\"manorinfinity\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png\",\"contentUrl\":\"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png\",\"width\":282,\"height\":260,\"caption\":\"manorinfinity\"},\"logo\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Complex Problem Solver, Outloud Thinker, An Outstanding Writer, and a very curious human being\",\"sameAs\":[\"http:\/\/manorinfinity.com\"],\"url\":\"https:\/\/manorinfinity.com\/blog\/author\/manorinfinity\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"LeetCode Series: Longest Common Prefix | ManOrInfinity","description":"Leetcode series solving leetcode problems. solution to leetcode question. data structures and algorithms. how to find longest common prefix in array of str","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/","og_locale":"en_US","og_type":"article","og_title":"LeetCode Series: Longest Common Prefix","og_url":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/","og_site_name":"ManOrInfinity","article_published_time":"2023-05-03T14:44:00+00:00","article_modified_time":"2023-05-03T14:45:37+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1","type":"image\/png"}],"author":"manorinfinity","twitter_card":"summary_large_image","twitter_creator":"@manorinfinity","twitter_site":"@manorinfinity","twitter_misc":{"Written by":"manorinfinity","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#article","isPartOf":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/"},"author":{"name":"manorinfinity","@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"headline":"LeetCode Series: Longest Common Prefix","datePublished":"2023-05-03T14:44:00+00:00","dateModified":"2023-05-03T14:45:37+00:00","mainEntityOfPage":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/"},"wordCount":326,"commentCount":0,"publisher":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"image":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1","articleSection":["Infinity Fitness"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/","url":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/","name":"LeetCode Series: Longest Common Prefix | ManOrInfinity","isPartOf":{"@id":"https:\/\/manorinfinity.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage"},"image":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1","datePublished":"2023-05-03T14:44:00+00:00","dateModified":"2023-05-03T14:45:37+00:00","description":"Leetcode series solving leetcode problems. solution to leetcode question. data structures and algorithms. how to find longest common prefix in array of str","breadcrumb":{"@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#primaryimage","url":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/manorinfinity.com\/blog\/2023\/05\/03\/leetcode-series-longest-common-prefix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/manorinfinity.com\/blog\/"},{"@type":"ListItem","position":2,"name":"LeetCode Series: Longest Common Prefix"}]},{"@type":"WebSite","@id":"https:\/\/manorinfinity.com\/blog\/#website","url":"https:\/\/manorinfinity.com\/blog\/","name":"ManOrInfinity","description":"Thrive towards greatness","publisher":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/manorinfinity.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901","name":"manorinfinity","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/","url":"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png","contentUrl":"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png","width":282,"height":260,"caption":"manorinfinity"},"logo":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/"},"description":"Complex Problem Solver, Outloud Thinker, An Outstanding Writer, and a very curious human being","sameAs":["http:\/\/manorinfinity.com"],"url":"https:\/\/manorinfinity.com\/blog\/author\/manorinfinity\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/manorinfinity.com\/blog\/wp-content\/uploads\/2023\/05\/Purple-and-Cream-Modern-Minimal-Beauty-YouTube-Thumbnail.png?fit=1280%2C720&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/comments?post=3511"}],"version-history":[{"count":2,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3511\/revisions"}],"predecessor-version":[{"id":3514,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3511\/revisions\/3514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/media\/3512"}],"wp:attachment":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/media?parent=3511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/categories?post=3511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/tags?post=3511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}