{"action":"created","issue":{"url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16/issues/20","repository_url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16","labels_url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16/issues/20/comments","events_url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16/issues/20/events","html_url":"https://github.com/Seneca-BTP500/btp500-f16/issues/20","id":183216133,"number":20,"title":"What is the disadvantages of using recursion on a function?","user":{"login":"spatel233","id":22042294,"avatar_url":"https://avatars.githubusercontent.com/u/22042294?v=3","gravatar_id":"","url":"https://api.github.com/users/spatel233","html_url":"https://github.com/spatel233","followers_url":"https://api.github.com/users/spatel233/followers","following_url":"https://api.github.com/users/spatel233/following{/other_user}","gists_url":"https://api.github.com/users/spatel233/gists{/gist_id}","starred_url":"https://api.github.com/users/spatel233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatel233/subscriptions","organizations_url":"https://api.github.com/users/spatel233/orgs","repos_url":"https://api.github.com/users/spatel233/repos","events_url":"https://api.github.com/users/spatel233/events{/privacy}","received_events_url":"https://api.github.com/users/spatel233/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-15T15:44:22Z","updated_at":"2016-10-15T21:44:19Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16/issues/comments/254012970","html_url":"https://github.com/Seneca-BTP500/btp500-f16/issues/20#issuecomment-254012970","issue_url":"https://api.github.com/repos/Seneca-BTP500/btp500-f16/issues/20","id":254012970,"user":{"login":"karan-randhawa","id":18541759,"avatar_url":"https://avatars.githubusercontent.com/u/18541759?v=3","gravatar_id":"","url":"https://api.github.com/users/karan-randhawa","html_url":"https://github.com/karan-randhawa","followers_url":"https://api.github.com/users/karan-randhawa/followers","following_url":"https://api.github.com/users/karan-randhawa/following{/other_user}","gists_url":"https://api.github.com/users/karan-randhawa/gists{/gist_id}","starred_url":"https://api.github.com/users/karan-randhawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karan-randhawa/subscriptions","organizations_url":"https://api.github.com/users/karan-randhawa/orgs","repos_url":"https://api.github.com/users/karan-randhawa/repos","events_url":"https://api.github.com/users/karan-randhawa/events{/privacy}","received_events_url":"https://api.github.com/users/karan-randhawa/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T21:44:19Z","updated_at":"2016-10-15T21:44:19Z","body":"Try and use recursion if and only if:\r\n1) The problem itself is defined recursively.\r\n2) An iterative solution is drastically slower or not available at all.\r\nThis is because, there is a major drawback of using a recursive way to write a function. If you write a function recursively, it uses the Runtime Stack. This way, your program is very prone to run out of stack memory space if you do not write it correctly or carefully. Also, if your data set is very big, it gets terribly slow once the number of recursions increases. \r\nTherefore, if an iterative solution is available, definitely consider using it instead of a recursive solution."}}
{"actor":{"display_login":"karan-randhawa"}}