{"id":2574,"date":"2021-08-27T00:29:47","date_gmt":"2021-08-27T00:29:47","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2574"},"modified":"2021-09-20T10:48:53","modified_gmt":"2021-09-20T10:48:53","slug":"i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/","title":{"rendered":"I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1) ? I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\">I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1), I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?<\/p>\n<div class=\"row\">\n<div class=\"col-sm-6\">\n<p>A. Iteration<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. Decision-making<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. Object Oriented Programming<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. Recursion<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-d-recursion\"><b>Answer :\u00a0<\/b>D. Recursion<\/h3>\n<div class=\"subheading\">\n<h2 id=\"explanation\">Explanation<\/h2>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<p align=\"justify\">Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0D. Recursion<\/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":[16519,16100,16101,16091,16110,16035,2358,16097,16093,16106,16107,16104,16028,16099,16095,16105,16096,16102,16098,16103,16109,16108,16092,16094],"class_list":["post-2574","post","type-post","status-publish","format-standard","hentry","category-programming","tag-amcat-question-papers-with-answers","tag-basic-programming-interview-questions","tag-basic-programming-questions","tag-c-programming-basic-questions-and-answers","tag-c-programming-interview-questions","tag-c-programming-questions-and-answers","tag-c-programming-questions","tag-computer-programming-questions","tag-how-to-practice-programming","tag-object-oriented-programming-interview-questions","tag-programming-interview","tag-programming-interview-questions","tag-programming-interview-questions-and-answers","tag-programming-interview-questions-and-answers-for-experienced","tag-programming-interview-questions-and-answers-for-freshers","tag-programming-interviews-exposed","tag-programming-mcq-questions-with-answers","tag-programming-practice","tag-programming-practice-questions","tag-programming-problems","tag-programming-questions","tag-programming-quiz","tag-programming-tests-for-interviews","tag-programming-topics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I have a problem to solve that takes n as an input number - Programming<\/title>\n<meta name=\"description\" content=\"Programming -Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).\" \/>\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\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I have a problem to solve that takes n as an input number - Programming\" \/>\n<meta property=\"og:description\" content=\"Programming -Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-27T00:29:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-20T10:48:53+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\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1) ? I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?\",\"datePublished\":\"2021-08-27T00:29:47+00:00\",\"dateModified\":\"2021-09-20T10:48:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/\"},\"wordCount\":120,\"commentCount\":0,\"keywords\":[\"AMCAT Question Papers with Answers\",\"basic programming interview questions\",\"basic programming questions\",\"c programming basic questions and answers\",\"c programming interview questions\",\"c programming questions and answers\",\"C++ Programming Questions\",\"computer programming questions\",\"how to practice programming\",\"object oriented programming interview questions\",\"programming interview\",\"programming interview questions\",\"programming interview questions and answers\",\"programming interview questions and answers for experienced\",\"programming interview questions and answers for freshers\",\"programming interviews exposed\",\"programming mcq questions with answers\",\"programming practice\",\"programming practice questions\",\"programming problems\",\"programming questions\",\"programming quiz\",\"programming tests for interviews\",\"programming topics\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/\",\"name\":\"I have a problem to solve that takes n as an input number - Programming\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-08-27T00:29:47+00:00\",\"dateModified\":\"2021-09-20T10:48:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Programming -Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\\\/\"]}]},{\"@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":"I have a problem to solve that takes n as an input number - Programming","description":"Programming -Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).","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\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/","og_locale":"en_US","og_type":"article","og_title":"I have a problem to solve that takes n as an input number - Programming","og_description":"Programming -Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/","og_site_name":"Wikitechy","article_published_time":"2021-08-27T00:29:47+00:00","article_modified_time":"2021-09-20T10:48:53+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\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1) ? I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?","datePublished":"2021-08-27T00:29:47+00:00","dateModified":"2021-09-20T10:48:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/"},"wordCount":120,"commentCount":0,"keywords":["AMCAT Question Papers with Answers","basic programming interview questions","basic programming questions","c programming basic questions and answers","c programming interview questions","c programming questions and answers","C++ Programming Questions","computer programming questions","how to practice programming","object oriented programming interview questions","programming interview","programming interview questions","programming interview questions and answers","programming interview questions and answers for experienced","programming interview questions and answers for freshers","programming interviews exposed","programming mcq questions with answers","programming practice","programming practice questions","programming problems","programming questions","programming quiz","programming tests for interviews","programming topics"],"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/","name":"I have a problem to solve that takes n as an input number - Programming","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-27T00:29:47+00:00","dateModified":"2021-09-20T10:48:53+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Programming -Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t\/"]}]},{"@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\/2574","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=2574"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2574\/revisions"}],"predecessor-version":[{"id":2584,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2574\/revisions\/2584"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}