双层递归如何理解
Wrapping up my last learning module at Flatiron School before tackling my final project, I’ve been reflecting on and being proud of how far I’ve come while simultaneously stressing out about what’s ahead. On one hand, I went from having absolutely 0 (zero! No lie!) experience with coding to writing full-stack applications. On the other, if you asked me what an algorithm is, I’d probably just smile and wave.
在完成我的最后一个项目之前,总结了我在Flatiron学校的最后一个学习模块,我一直在思考并为自己所取得的成就感到自豪,同时为即将来临的事情做准备。 一方面,我从绝对的零编码(零!没有谎言!)经验转变为编写全栈应用程序。 另一方面,如果您问我什么是算法,我可能只会微笑并挥手。
So, for the past couple of weeks, I’ve been doing some heavy-duty Googling. My search history includes, “what is an algorithm,” and “why do I need to know what an algorithm is,” and, of course, “which algorithms should I study for my technical interviews.” All of the results either briefly mentioned or were completely focused on this idea of a recursive function or algorithm.
因此,在过去的几周中,我一直在进行一些重型谷歌搜索。 我的搜索记录包括“什么是算法”和“为什么需要知道什么是算法”,当然还有“我应该为技术面试学习哪些算法”。 简要提及所有结果或完全将其集中在递归函数或算法的想法上。
Does the word “recursive” also scare you? Nice. The first step to understanding is to realize it’s just a word made up by some people (white men*) to intimidate others (non white men) and consequentially steer them away from entering the world of STEM. But, more about inclusion in tech in another article…
“递归”一词还会吓到您吗? 真好 理解的第一步是要意识到这只是一个由某些人(白人*)组成的单词,用来恐吓其他人(非白人)并因此引导他们远离STEM领域。 但是,在另一篇文章中,关于包含在技术中的更多信息……
Now that we’ve gotten that phobia of big scary words out of the way (it’s actually called