{"id":9316,"date":"2022-08-25T13:38:23","date_gmt":"2022-08-25T13:38:23","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=9316"},"modified":"2023-05-12T07:17:04","modified_gmt":"2023-05-12T07:17:04","slug":"time-complexity-of-building-a-heap","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/","title":{"rendered":"Time complexity of building a heap"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg\" alt=\"\" \/><\/p>\n<p>Heapify is a common operation performed on binary heaps, which are data structures that are used to implement priority queues. It involves rearranging the elements in a heap to maintain the heap property, which ensures that the root element of the heap is always the highest (or lowest) priority element.<\/p>\n<h2>Time Complexity of Heapify<\/h2>\n<p>The time complexity of the heapify operation is an important consideration when analyzing the performance of algorithms that use binary heaps. It determines the amount of time required to reorganize the heap after adding or removing elements and impacts the overall performance of the algorithm<br \/>\nThe time complexity of heapify depends on the size of the heap and the depth of the heap, as well as the particular algorithm used to perform the operation. Several algorithms exist for heapify, including bottom-up heapify and top-down heapify, which have different time complexities and performance characteristics. Understanding these algorithms and their time complexities can help optimize the performance of algorithms that use binary heaps.<\/p>\n<h3>Example of a Perfect Complete Binary Tree<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434447229-Image-01.png\" alt=\"\" \/><\/p>\n<p>The heart of heap data structure is the Heapify algorithm, which is used to maintain the second property of heap data structure i.e Heap order property. According to the heap order property in the min-heap, every node\u2019s value must be smaller than its children and in the max-heap, every node\u2019s value must be greater than its children.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434472261-Image-02.png\" alt=\"\" \/><\/p>\n<h3>Time Complexity analysis of building a Heap<\/h3>\n<p>After every insertion, the Heapify algorithm is used to maintain the properties of the heap data structure. So, we will first discuss the time complexity of the Heapify algorithm.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434599645-Image-03.png\" alt=\"\" \/><\/p>\n<h3>Pseudo Code<\/h3>\n<pre><code>max_Heapify(A, i){ \nleft_child = 2*i; \nright_child = 2*i +1; \nif(left_child <= A.heap_size() and A[left_child] > A[i]) \n       largest = l; \nelse largest = i; \n\nif(right_child <= A.heap_size() and A[right_child] > A[largest])  \n        largest = r; \n\nif(largest != i) \n        swap(A[largest],A[i]) \n        max_Heapify(A,largest) \n} \n\nbuild_Max_Heap(A){ \nA.heap_size \u2190 A.length \nfor i \u2190 A.length\/2 downto 1 \n         max_Heapify(A, i) \n} <\/code><\/pre>\n<p>From the above example, we can conclude that the Heapify algorithm\u2019s time complexity is equal to O(height of the complete binary tree) i.e O(log N).<\/p>\n<h3>Trivial Analysis:<\/h3>\n<p>Each call to MAX-HEAPIFY requires log(n) time, we make n such calls O(nlogn)<\/p>\n<h3>Tighter Bound:<\/h3>\n<p>Each call to MAX-HEAPIFY requires time O(h) where h is the height of node i. Therefore running time is<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434659485-Image-04.png\" alt=\"\" \/><\/p>\n<p><strong>Conclusion<\/strong><br \/>\nIn conclusion, the time complexity of the heapify operation is an important factor to consider when analyzing the performance of algorithms that use binary heaps. It determines the amount of time required to reorganize the heap after adding or removing elements and can impact the overall efficiency of the algorithm.<\/p>\n<p>The time complexity of Heapify depends on the size of the heap and the depth of the heap, as well as the algorithm used to perform the operation. Bottom-up heapify and top-down heapify are two common algorithms used for heapify, each with different time complexities and performance characteristics.<\/p>\n<p>It is important to understand the time complexity of heapify and choose the appropriate algorithm based on the size and depth of the heap, as well as the specific requirements of the algorithm being implemented. By optimizing the heapify operation, the overall performance of algorithms that use binary heaps can be improved.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<p><strong>Q1. What is the worst-case time complexity of heapify?<\/strong><br \/>\n<strong>Ans.<\/strong> The worst-case time complexity of heapify depends on the algorithm used. The worst-case time complexity of bottom-up heapify is O(n), where n is the size of the heap. The worst-case time complexity of top-down heapify is O(n log n), where n is the size of the heap.<\/p>\n<p><strong>Q2. Is the time complexity of heapify affected by the depth of the heap?<\/strong><br \/>\n<strong>Ans.<\/strong> Yes, the time complexity of heapify is affected by the depth of the heap. The deeper the heap, the longer it takes to perform the heapify operation. This is because heapify involves swapping elements in the heap, and the number of swaps required increases as the depth of the heap increases.<\/p>\n<p><strong>Q3. What is the difference between bottom-up heapify and top-down heapify?<\/strong><br \/>\n<strong>Ans.<\/strong> Bottom-up heapify starts at the lowest level of the heap and works its way up to the root, while top-down heapify starts at the root and works its way down to the lowest level of the heap. Bottom-up heapify has a time complexity of O(n), while top-down heapify has a time complexity of O(log n). Bottom-up heapify is typically faster for large heaps, while top-down heapify is faster for small heaps.<\/p>\n<p><strong>Q4. Can the time complexity of heapify be improved?<\/strong><br \/>\n<strong>Ans.<\/strong> The time complexity of heapify is determined by the algorithm used, but there are ways to optimize the operation. For example, using a binary heap with a Fibonacci heap can reduce the worst-case time complexity of heapify to O(log n), making it more efficient than traditional binary heaps.<\/p>\n<p><strong>Q5. Is heapify always necessary when working with binary heaps?<\/strong><br \/>\n<strong>Ans.<\/strong> Heapify is necessary when working with binary heaps to maintain the heap property and ensure that the highest (or lowest) priority element is always at the root of the heap. Without heapify, the performance of algorithms that use binary heaps would be severely impacted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Heapify is a common operation performed on binary heaps, which are data structures that are used to implement priority queues. It involves rearranging the elements in a heap to maintain the heap property, which ensures that the root element of the heap is always the highest (or lowest) priority element. Time Complexity of Heapify The [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[131],"tags":[],"class_list":["post-9316","post","type-post","status-publish","format-standard","hentry","category-heap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Time complexity of building a heap | Heap | PrepBytes Blog<\/title>\n<meta name=\"description\" content=\"In this article, we will discuss the time complexity of building a heap. This is the most important concept to learn while preparing for interviews.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time complexity of building a heap | Heap | PrepBytes Blog\" \/>\n<meta property=\"og:description\" content=\"In this article, we will discuss the time complexity of building a heap. This is the most important concept to learn while preparing for interviews.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-25T13:38:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-12T07:17:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Time complexity of building a heap\",\"datePublished\":\"2022-08-25T13:38:23+00:00\",\"dateModified\":\"2023-05-12T07:17:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\"},\"wordCount\":826,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg\",\"articleSection\":[\"Heap\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\",\"name\":\"Time complexity of building a heap | Heap | PrepBytes Blog\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg\",\"datePublished\":\"2022-08-25T13:38:23+00:00\",\"dateModified\":\"2023-05-12T07:17:04+00:00\",\"description\":\"In this article, we will discuss the time complexity of building a heap. This is the most important concept to learn while preparing for interviews.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Heap\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/heap\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Time complexity of building a heap\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Time complexity of building a heap | Heap | PrepBytes Blog","description":"In this article, we will discuss the time complexity of building a heap. This is the most important concept to learn while preparing for interviews.","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:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/","og_locale":"en_US","og_type":"article","og_title":"Time complexity of building a heap | Heap | PrepBytes Blog","og_description":"In this article, we will discuss the time complexity of building a heap. This is the most important concept to learn while preparing for interviews.","og_url":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2022-08-25T13:38:23+00:00","article_modified_time":"2023-05-12T07:17:04+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Time complexity of building a heap","datePublished":"2022-08-25T13:38:23+00:00","dateModified":"2023-05-12T07:17:04+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/"},"wordCount":826,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg","articleSection":["Heap"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/","url":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/","name":"Time complexity of building a heap | Heap | PrepBytes Blog","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg","datePublished":"2022-08-25T13:38:23+00:00","dateModified":"2023-05-12T07:17:04+00:00","description":"In this article, we will discuss the time complexity of building a heap. This is the most important concept to learn while preparing for interviews.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1661434402794-Article.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/time-complexity-of-building-a-heap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Heap","item":"https:\/\/prepbytes.com\/blog\/category\/heap\/"},{"@type":"ListItem","position":3,"name":"Time complexity of building a heap"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/9316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=9316"}],"version-history":[{"count":5,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/9316\/revisions"}],"predecessor-version":[{"id":16278,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/9316\/revisions\/16278"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=9316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=9316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=9316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}