{"id":381,"date":"2014-03-19T00:34:07","date_gmt":"2014-03-19T04:34:07","guid":{"rendered":"http:\/\/minireference.com\/blog\/?p=381"},"modified":"2014-03-19T00:34:07","modified_gmt":"2014-03-19T04:34:07","slug":"a-nice-question-for-coding-interviews","status":"publish","type":"post","link":"https:\/\/minireference.com\/blog\/a-nice-question-for-coding-interviews\/","title":{"rendered":"A nice question for coding interviews"},"content":{"rendered":"<p>I was discussing mortgage calculations with a friend today and realized this calculation would make an excellent interview question.<br \/>\nThe problem is simple enough, but still requires some thought&#8230;<\/p>\n<p>Writeup: <a href='http:\/\/minireference.com\/blog\/wp-content\/uploads\/2014\/03\/lesson3-interest-rate-calculations-using-recursion.pdf'>interest-rate-calculations-using-recursion (PDF)<\/a><\/p>\n<p>Source: <a href='http:\/\/minireference.com\/blog\/wp-content\/uploads\/2014\/03\/lesson3-interest-rate-calculations-using-recursion.js'>interest-rate-calculations-using-recursion.js<\/a><\/p>\n<p>If extra time, the candidate can be asked to write a <code>solve<\/code> function to solve for the payment P given the other values, e.g., solve for P in <code>Zr(25*12,315000, 0.005,P) = 0<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was discussing mortgage calculations with a friend today and realized this calculation would make an excellent interview question. The problem is simple enough, but still requires some thought&#8230; Writeup: interest-rate-calculations-using-recursion (PDF) Source: interest-rate-calculations-using-recursion.js If extra time, the candidate can be asked to write a solve function to solve for the payment P given the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":0,"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"wp:attachment":[{"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minireference.com\/blog\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}