leetcode做不出来_当您不知道自己在做什么时的leetcode

leetcode做不出来

Running through problems on LeetCode trying to solve complex algorithms and have no clue what approach to take in solving them? Or maybe you succeeded in solving the algorithm without meeting the required time complexity to pass the problem.

LeetCode遇到各种问题,试图解决复杂的算法, 却不知道采用哪种方法来解决它们? 或者,也许您成功地解决了算法,却没有满足解决问题所需的时间复杂性。

For those programmers that aren’t aware of LeetCode (which I’m sure the vast majority of you are), LeetCode is a platform that offers a plethora of whiteboard problems and algorithms set up to help programmers prepare for whiteboard interviews, improve their ability to solve complex algorithms or problems, or to gain a better understanding of finding the best time complexity and memory capacity for a particular problem.

对于那些不了解LeetCode的程序员(我相信你们中的绝大多数人),LeetCode是一个提供大量白板问题和算法的平台,可以帮助程序员准备白板面试,提高他们的能力解决复杂的算法或问题,或者更好地理解为特定问题找到最佳时间复杂度和存储容量的方法。

It’s honestly a fantastic platform for any programmer, but sometimes it's very easy for you to get discouraged by the complexity of certain problems and your inability to solve them especially when Google searches fail you. Sometimes you get seduced into just looking up the answer to the problem which doesn’t do any justice in ingraining the meaning and the approach to the algorithm into your mind.

老实说,对于任何程序员来说,这都是一个绝佳的平台,但是有时候,您会很容易因某些问题的复杂性以及您无法解决这些问题而灰心丧气,尤其是当Google搜索使您失败时。 有时,您会被吸引去只是查找问题的答案,这在使算法的意义和方法根深蒂固的过程中并没有任何道理。

At that point, you might know the answer and the approach by memory, but you don’t know why or how that solution was reached, so when the day comes to actually use that algorithm with a similar problem, you don’t know what to do.

那时,您可能会通过内存知道答案和方法,但是您不知道为什么或如何找到该解决方案,因此当实际使用该算法解决类似问题时,您不知道会发生什么。去做。

I know I’ve been in that position of frustration and not knowing, so I’ve found that the best way to truly understand an algorithm to the point I could master LeetCode and approach essentially any real-world problem with an efficient time-complex solution in mind is to expose myself to a learning platform that not only breaks apart and explains the step-by-step solution and reasoning to the algorithmic solution to a problem, but also present more than one way to solve it with its respective time-complexity and memory capacity of each approach.

我知道自己一直处在沮丧和不知所措的位置,所以我发现了真正理解算法的最佳方法,使我可以掌握LeetCode并以有效的时间复杂性来解决任何实际问题解决方案的思路是使自己处于一个学习平台,该学习平台不仅可以分解并解释逐步解决方案和对问题的算法解决方案的推理,而且还提供了不止一种方式来解决相应的问题,每种方法的复杂性和存储容量。

学术解决方案 (The Academic Solution)

Cheaper than a college degree, affordable, and well worth its value, the online learning platform, AlgoExpert, has provided all of this and more for me.

在线学习平台AlgoExpert比大学学位便宜,负担得起并且非常值钱,它为我提供了所有这些以及更多信息。

Note that I am not sponsored by AlgoExpert in any way, shape, or form. This is truly just a fantastic, helpful, and educational platform.

请注意,AlgoExpert不会以任何方式,形状或形式赞助我。 这确实是一个梦幻般,有用且具有教育意义的平台。

Created by former Google Engineer, Clément Mihailescu, the platform not only offers very well detailed and comprehensive video explanations on the theory behind solving popular coding interview questions and system design principles, but it also offers a crash-course on both data structures and system design, mock coding assessments, and a referenceable glossary of programming terminology.

该平台由前Google工程师ClémentMihailescu创建,不仅提供有关解决常见编码面试问题和系统设计原理背后理论的非常详尽详尽的视频说明,而且还提供了有关数据结构和系统设计的速成课程,模拟编码评估以及编程术语的参考词汇表。

For me, at least, it brought to light the reasoning behind several algorithms and improved my approach to finding optimal and clean solutions for programming assignments and problems that I face on a daily basis.

至少对我来说,它揭示了几种算法的原理,并改进了我为程序设计和日常遇到的问题寻找最佳,简洁解决方案的方法。

It goes well beyond the preparation of the interview and will readily prepare you to think about the best solutions in every single situation that you find yourself in. I know that it did that for me. That’s why I highly recommend that everyone beyond beginners would benefit from further educating themselves through this learning platform.

它远远超出了面试的准备范围,并且将使您随时准备好思考遇到的每种情况下的最佳解决方案。我知道它为我做了。 因此,我强烈建议初学者以外的每个人都可以通过此学习平台进一步接受自我教育而受益。

Now, this platform by no means stands a replacement for LeetCode, but it will definitely increase your understanding of problems in ways that LeetCode doesn’t provide and will also drastically increase your ability to solve the vast majority of the problems on LeetCode anyways. Now don’t tell me that being in that position of knowledge and skill won’t increase your overall confidence as a developer.

现在,该平台绝不能替代LeetCode,但它肯定会以LeetCode不提供的方式增进您对问题的理解,并且也将极大地提高您解决LeetCode上绝大多数问题的能力。 现在,不要告诉我,处于那种知识和技能的位置不会增加您作为开发人员的整体信心。

最后的想法 (Final Thoughts)

Just remember that when you are faced with a complex problem or requirement, all that you need to do is break it apart into pieces and aim to really understand the approaches that are available to you.

只需记住,当您面对复杂的问题或要求时,您要做的就是将其分解成几部分,以真正了解您可以使用的方法。

Trust me when I say that it really pays off when you understand the purpose and required path it takes to find the most optimal solutions. If you were to just search every single thing without actually understanding what you’re doing, I promise you that you won’t ever ascend from being a good-to-great programmer.

当我说当您了解找到最佳解决方案的目的和所需路径时,它确实会带来回报时,请相信我。 如果您只是搜索每件事而不真正了解自己在做什么,那么我向您保证,您永远不会成为一名优秀的程序员。

So give it a shot, explore beyond platforms that simply just ask you coding questions, and truly aim to understand the answer instead of just knowing it. AlgoExpert was simply the platform I found that made this information most absorbable and understandable to me.

因此,试一试,探索仅询问您编码问题的平台,并真正地旨在理解答案而不是仅仅知道答案。 AlgoExpert只是我发现的平台,它使我最容易吸收和理解这些信息。

In the long run, you’ll be glad that you made that educational investment in yourself.

从长远来看,您会为自己的教育投资感到高兴。

翻译自: https://medium.com/better-programming/leetcode-when-you-have-no-idea-what-youre-doing-f6aed9b18f17

leetcode做不出来

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值