{"id":1272,"date":"2023-03-30T13:06:21","date_gmt":"2023-03-30T12:06:21","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=1272"},"modified":"2023-03-31T05:23:45","modified_gmt":"2023-03-31T04:23:45","slug":"solve-the-hackerrank-substring-challenge-java-solution","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/","title":{"rendered":"Solve the HackerRank Substring Challenge (Java Solution)"},"content":{"rendered":"\n<p>In this article we will solve the HackerRank Substring challenge (Java solution). Let&#8217;s take a look at the question<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question\">Question:<\/h3>\n\n\n\n<p>A substring is a group of contiguous characters in a string. For instance, all substrings of abc are<strong> [a, b, c, ab, bc, abc]<\/strong>.<\/p>\n\n\n\n<p>In this challenge, you will be given a binary representation of a number. You must determine the total number of substrings present that match the following conditions:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The 0&#8217;s and 1&#8217;s are grouped consecutively (e.g., 01, 10, 0011, 1100, 000111, etc).<\/li>\n\n\n\n<li>The number of 0&#8217;s in the substring is equal to the number of 1&#8217;s in the substring.<\/li>\n<\/ol>\n\n\n\n<p>As an example, consider the string 001101. The 4 substrings matching the two conditions include [0011, 01, 10, 01]. Note that 01 appears twice, from indexes 1-2 and 4-5. There are other substrings, e.g. 001 and 011 that match the first condition but not the second.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-java-solution-to-the-hackerrank-challenge\">Java Solution to the Hackerrank challenge:<\/h3>\n\n\n\n<p>Let&#8217;s solve the hackerrank substring challenge using Java<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"java\" class=\"language-java\">import java.io.*;\nimport java.util.*;\nimport java.text.*;\nimport java.math.*;\nimport java.util.regex.*;\n\npublic class Solution {\n\n    \/*\n     * Complete the function below.\n     *\/\n    static int counting(String s) {\n        int curr = 1, prev = 0, ans = 0;\n        for(int i = 1; i&lt; s.length(); i++)\n            if(s.charAt(i) == s.charAt(i-1)) curr++;\n             else{\n                 ans += Math.min(curr, prev);\n                 prev = curr;\n                 curr = 1;\n             }\n             return ans + Math.min(curr, prev);\n            }\n    public static void main(String[] args) throws IOException {\n        Scanner in = new Scanner(System.in);\n        final String fileName = System.getenv(\"OUTPUT_PATH\");\n        BufferedWriter bw = null;\n        if (fileName != null) {\n            bw = new BufferedWriter(new FileWriter(fileName));\n        }\n        else {\n            bw = new BufferedWriter(new OutputStreamWriter(System.out));\n        }\n\n        int res;\n        String s;\n        try {\n            s = in.nextLine();\n        } catch (Exception e) {\n            s = null;\n        }\n\n        res = counting(s);\n        bw.write(String.valueOf(res));\n        bw.newLine();\n\n        bw.close();\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>Here, we declared three variables <strong><em>cur<\/em><\/strong>, <strong><em>prev <\/em><\/strong>and <strong><em>ans<\/em><\/strong>. We&#8217;re also looping through to get the characters at the given index.<\/p>\n\n\n\n<p>This is how we solve the hackerrank substring challenge using Java<\/p>\n\n\n\n<p><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.codefussion\" target=\"_blank\" rel=\"noreferrer noopener\">Download the Codeflare mobile app and start learning how to code<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\/blog\/fizzbuzz-hackerrank-challenge\/\" target=\"_blank\" rel=\"noreferrer noopener\">Solve the FizzBuzz HackerRank Challenge<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\" target=\"_blank\" rel=\"noreferrer noopener\">Start your software development training journey<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will solve the HackerRank Substring challenge (Java solution). Let&#8217;s take a look at the<\/p>\n","protected":false},"author":1,"featured_media":1273,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-1272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Solve the HackerRank Substring Challenge (Java Solution)<\/title>\n<meta name=\"description\" content=\"In this article we will solve the HackerRank Substring challenge (Java solution). Let&#039;s take a look at the question\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solve the HackerRank Substring Challenge (Java Solution)\" \/>\n<meta property=\"og:description\" content=\"In this article we will solve the HackerRank Substring challenge (Java solution). Let&#039;s take a look at the question\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-30T12:06:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-31T04:23:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png\" \/>\n\t<meta property=\"og:image:width\" content=\"928\" \/>\n\t<meta property=\"og:image:height\" content=\"485\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"Solve the HackerRank Substring Challenge (Java Solution)\",\"datePublished\":\"2023-03-30T12:06:21+00:00\",\"dateModified\":\"2023-03-31T04:23:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/\"},\"wordCount\":211,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Screenshot-2023-03-30-at-13.02.47.png\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/\",\"name\":\"Solve the HackerRank Substring Challenge (Java Solution)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Screenshot-2023-03-30-at-13.02.47.png\",\"datePublished\":\"2023-03-30T12:06:21+00:00\",\"dateModified\":\"2023-03-31T04:23:45+00:00\",\"description\":\"In this article we will solve the HackerRank Substring challenge (Java solution). Let's take a look at the question\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Screenshot-2023-03-30-at-13.02.47.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Screenshot-2023-03-30-at-13.02.47.png\",\"width\":928,\"height\":485,\"caption\":\"solve the hackerrank substring challenge (Java solution)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/solve-the-hackerrank-substring-challenge-java-solution\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Solve the HackerRank Substring Challenge (Java Solution)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solve the HackerRank Substring Challenge (Java Solution)","description":"In this article we will solve the HackerRank Substring challenge (Java solution). Let's take a look at the question","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:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/","og_locale":"en_US","og_type":"article","og_title":"Solve the HackerRank Substring Challenge (Java Solution)","og_description":"In this article we will solve the HackerRank Substring challenge (Java solution). Let's take a look at the question","og_url":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2023-03-30T12:06:21+00:00","article_modified_time":"2023-03-31T04:23:45+00:00","og_image":[{"width":928,"height":485,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"Solve the HackerRank Substring Challenge (Java Solution)","datePublished":"2023-03-30T12:06:21+00:00","dateModified":"2023-03-31T04:23:45+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/"},"wordCount":211,"commentCount":1,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/","url":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/","name":"Solve the HackerRank Substring Challenge (Java Solution)","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png","datePublished":"2023-03-30T12:06:21+00:00","dateModified":"2023-03-31T04:23:45+00:00","description":"In this article we will solve the HackerRank Substring challenge (Java solution). Let's take a look at the question","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png","width":928,"height":485,"caption":"solve the hackerrank substring challenge (Java solution)"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/solve-the-hackerrank-substring-challenge-java-solution\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"Solve the HackerRank Substring Challenge (Java Solution)"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-30-at-13.02.47.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/1272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=1272"}],"version-history":[{"count":2,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/1272\/revisions"}],"predecessor-version":[{"id":1276,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/1272\/revisions\/1276"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/1273"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=1272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=1272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=1272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}