双层递归如何理解_如何递归

本文探讨了如何理解和实现双层递归的概念,通过翻译自Rebecca A.P. Rosenberg的文章,帮助读者掌握在Python、Java等语言中使用递归解决LeetCode等算法问题的技巧。
摘要由CSDN通过智能技术生成

双层递归如何理解

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值