{"id":2592,"date":"2021-08-27T00:53:28","date_gmt":"2021-08-27T00:53:28","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2592"},"modified":"2021-09-03T06:30:05","modified_gmt":"2021-09-03T06:30:05","slug":"what-is-space-complexity-of-the-program","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/","title":{"rendered":"What is space complexity of the program ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\">What is space complexity of the program ?<\/p>\n<div class=\"row\">\n<div class=\"col-sm-12\">\n<p>A. Amount of hard disk space required to store the program<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>B. Amount of hard disk space required to compile the program<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>C. Amount of memory required by the program to run<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>D. Amount of memory required by the program to compile<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-c-amount-of-memory-required-by-the-program-to-run\"><b>Answer :\u00a0<\/b>C. Amount of memory required by the program to run<\/h3>\n<div class=\"subheading\">\n<h2 id=\"explanation\">Explanation :<\/h2>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li>Space complexity is a measure of how efficient your code is in terms of memory used.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0C. Amount of memory required by the program to run<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15949],"tags":[16262,15903,16238,16239,16276,15924,16272,16240,3138,16241,16242,16252,16243,16232,16254,16244,16253,16255,16245,16246,16247,16248,16249,16250,16251],"class_list":["post-2592","post","type-post","status-publish","format-standard","hentry","category-programming","tag-cognizant-interview-questions","tag-craterzone-interview-questions-and-answers","tag-difference-between-time-and-space-complexity","tag-how-to-calculate-space-complexity","tag-most-asked-sapient-nitro-interview-questions","tag-sapient-nitro-interview-questions-and-answers","tag-sapient-nitro-placement-questions-and-answers","tag-space-complexity","tag-space-complexity-examples","tag-space-complexity-in-data-structure","tag-space-complexity-notation","tag-space-complexity-of-an-algorithm","tag-space-complexity-of-sorting-algorithms","tag-time-and-space-complexity","tag-time-and-space-complexity-of-algorithms","tag-time-and-space-complexity-tutorials","tag-time-complexity-and-space-complexity","tag-time-space-complexity","tag-what-does-space-complexity-mean","tag-what-is-o-1-space-complexity","tag-what-is-space-and-time-complexity","tag-what-is-space-complexity","tag-what-is-space-complexity-and-why-measuring-it","tag-what-is-space-complexity-in-data-structure","tag-what-is-time-complexity-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is space complexity of the program ? - Programming - Wikitechy<\/title>\n<meta name=\"description\" content=\"What is space complexity of the program ? - Space complexity is a measure of how efficient your code is in terms of memory used.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is space complexity of the program ? - Programming - Wikitechy\" \/>\n<meta property=\"og:description\" content=\"What is space complexity of the program ? - Space complexity is a measure of how efficient your code is in terms of memory used.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-27T00:53:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-03T06:30:05+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"What is space complexity of the program ?\",\"datePublished\":\"2021-08-27T00:53:28+00:00\",\"dateModified\":\"2021-09-03T06:30:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/\"},\"wordCount\":84,\"commentCount\":0,\"keywords\":[\"Cognizant Interview Questions\",\"Craterzone Interview Questions and Answers\",\"difference between time and space complexity\",\"how to calculate space complexity\",\"Most Asked Sapient Nitro Interview Questions\",\"sapient nitro interview questions and answers\",\"Sapient Nitro Placement Questions and Answers\",\"space complexity\",\"space complexity examples\",\"space complexity in data structure\",\"space complexity notation\",\"space complexity of an algorithm\",\"space complexity of sorting algorithms\",\"Time and Space Complexity\",\"time and space complexity of algorithms\",\"Time and Space Complexity Tutorials\",\"time complexity and space complexity\",\"time space complexity\",\"What does 'Space Complexity' mean\",\"What is O 1 space complexity\",\"What is space and time complexity\",\"What is Space Complexity\",\"what is Space Complexity and Why measuring it\",\"What is space complexity in data structure\",\"What is time complexity C\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/\",\"name\":\"What is space complexity of the program ? - Programming - Wikitechy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-08-27T00:53:28+00:00\",\"dateModified\":\"2021-09-03T06:30:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is space complexity of the program ? - Space complexity is a measure of how efficient your code is in terms of memory used.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-is-space-complexity-of-the-program\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is space complexity of the program ? - Programming - Wikitechy","description":"What is space complexity of the program ? - Space complexity is a measure of how efficient your code is in terms of memory used.","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:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/","og_locale":"en_US","og_type":"article","og_title":"What is space complexity of the program ? - Programming - Wikitechy","og_description":"What is space complexity of the program ? - Space complexity is a measure of how efficient your code is in terms of memory used.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/","og_site_name":"Wikitechy","article_published_time":"2021-08-27T00:53:28+00:00","article_modified_time":"2021-09-03T06:30:05+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"What is space complexity of the program ?","datePublished":"2021-08-27T00:53:28+00:00","dateModified":"2021-09-03T06:30:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/"},"wordCount":84,"commentCount":0,"keywords":["Cognizant Interview Questions","Craterzone Interview Questions and Answers","difference between time and space complexity","how to calculate space complexity","Most Asked Sapient Nitro Interview Questions","sapient nitro interview questions and answers","Sapient Nitro Placement Questions and Answers","space complexity","space complexity examples","space complexity in data structure","space complexity notation","space complexity of an algorithm","space complexity of sorting algorithms","Time and Space Complexity","time and space complexity of algorithms","Time and Space Complexity Tutorials","time complexity and space complexity","time space complexity","What does 'Space Complexity' mean","What is O 1 space complexity","What is space and time complexity","What is Space Complexity","what is Space Complexity and Why measuring it","What is space complexity in data structure","What is time complexity C"],"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/","name":"What is space complexity of the program ? - Programming - Wikitechy","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-27T00:53:28+00:00","dateModified":"2021-09-03T06:30:05+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is space complexity of the program ? - Space complexity is a measure of how efficient your code is in terms of memory used.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-is-space-complexity-of-the-program\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=2592"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2592\/revisions"}],"predecessor-version":[{"id":2599,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2592\/revisions\/2599"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}