V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  JasonLaw  ›  全部回复第 5 页 / 共 36 页
回复总数  714
1  2  3  4  5  6  7  8  9  10 ... 36  
338 天前
回复了 JasonLaw 创建的主题 程序员 Python 的文档竟然没有 Poe Sage 说得明白🤐
@icatme #6 啥意思?不明白
338 天前
回复了 JasonLaw 创建的主题 程序员 Python 的文档竟然没有 Poe Sage 说得明白🤐
@NessajCN #3 是我没看清楚🤐,不过 returns a list with the `n` largest elements from the iterable. The elements are ordered from largest to smallest.明显更加好,因为相关的东西都放在一起了。
338 天前
回复了 JasonLaw 创建的主题 程序员 Python 的文档竟然没有 Poe Sage 说得明白🤐
341 天前
回复了 ky1e 创建的主题 问与答 有多少人从 edge 又换回 chrome 了
请不要使用带有贬义和歧视的词。🤕
@waytodelay #14 f(n) = f(n-1) + f(n-2),需要一些思考没错,但是这个跟数学没有太大关系。
这是一个糟糕的设计,造成了糟糕的用户体验。
345 天前
回复了 lran9527 创建的主题 问与答 说 R.I.P 是不是一种母语羞涩的表现?
@lwjef #37 From Poe - Saga: 实际上,"RIP"和"R.I.P."是表示同一个意思的缩写,即"Rest in Peace"(安息)。"RIP"是一种常见的缩写形式,通常被用于互联网上的聊天室和社交媒体等数字场景中。而"R.I.P."则是更正式的书写方式,通常用于印刷品或正式场合,如讣告、纪念碑等。在书写时,通常将每个字母用点号分隔开来,以示清晰。无论是"RIP"还是"R.I.P.",它们都是表达对已故人士的哀悼和祝福的一种方式。

的确,我在网上基本看到的都是 RIP 。
345 天前
回复了 lran9527 创建的主题 问与答 说 R.I.P 是不是一种母语羞涩的表现?
@waytodelay #10

以 Fibonacci sequence 为例,在 top-down 版本中,我们知道 f(n) = f(n-1) + f(n-2),然后 f(1)和 f(2)为 base case 。那么在 bottom-up 版本中,我们就可以以 f(1)和 f(2)为起点,一点一点往上解决更大的问题。

https://i.imgur.com/OaWb9v0.png
@waytodelay #10 没关系,一般人都会将动态规划错误地同等于 bottom-up ,但是动态规划包含了 bottom-up 和 top-down ,而 top-down 相对来说更加容易实现,当你完成了 top-down 之后,你就会很容易得出 bottom-up 版本。

From Poe - Sage:
Dynamic programming can be implemented using a bottom-up approach or a top-down approach.

In the bottom-up approach, also known as the "tabulation" method, the solution to a problem is computed iteratively starting from the smallest subproblem and building up to the larger problem. This approach is typically implemented using a table or array to store intermediate results. The advantage of the bottom-up approach is that it often has better space complexity than the top-down approach, since it avoids the overhead of recursion.

In the top-down approach, also known as the "memoization" method, the solution to a problem is computed recursively, but with the added step of caching intermediate results so that they can be reused later. This approach can be more intuitive and easier to implement than the bottom-up approach, but it can suffer from the overhead of recursion and may not be as efficient in terms of space complexity.

Both approaches have their advantages and disadvantages depending on the problem at hand.
@waytodelay #6 学习 Python 算是一个理由,最重要的是,让自己时刻保持 problem solving 的能力,还可以学到别人解决问题的想法,而且我也很享受解题过程。

我也不怎么做 hard 。BTW ,LeetCode 跟数学没有太大关系。
@x43125 #5 如果是刚开始的话,建议跟着 Blind 75 做,理解每一种类型题目的解法,千万不要记答案。
@zpxshl #1
@dif #3
我是喜欢整个解题过程,所以才能一直坚持下去。😅
347 天前
回复了 JasonLaw 创建的主题 程序员 ClashX 的订阅怎么去除掉香港的节点?
@monkey110 #30 我现在是让软件自动切换节点,会经常切换节点的,不过没有给我带来很大的困扰,我觉得体验挺好的。
347 天前
回复了 JasonLaw 创建的主题 程序员 ClashX 的订阅怎么去除掉香港的节点?
@forgottencoast #35 我跟你的想法一样,我更希望软件能够提供一个用户友好的方式进行设置,或许这不是一个常见的用户需求吧。🤕
348 天前
回复了 jonyj 创建的主题 Java 功能实现疑问
@vcbal #2 爬楼梯是什么题?可以给一下 LeetCode 链接吗?这个 https://leetcode.com/problems/climbing-stairs/
349 天前
回复了 jonyj 创建的主题 Java 功能实现疑问
你这个问题就有问题,你说“ 将这 N 个数字分为 N 组”,这个明显不对。然后怎么才算一组,是不是组的总和要尽量大?组的数量是不是要尽量少。

BTW ,要先理解问题,才能解决问题。
353 天前
回复了 JasonLaw 创建的主题 程序员 Bing Chat 也不是特别准确?🤐
@SmiteChow #16 What are you talking about? 😴
353 天前
回复了 JasonLaw 创建的主题 程序员 Bing Chat 也不是特别准确?🤐
@poorcai #11 你可以在 Chrome 浏览器安装“Bing Chat for All Browsers” extension ,我不喜欢 Edge ,不够简洁。
354 天前
回复了 JasonLaw 创建的主题 程序员 Bing Chat 也不是特别准确?🤐
@hsir #8 颜色跟 mode 有关,我选择的是 creative mode 。
1  2  3  4  5  6  7  8  9  10 ... 36  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5227 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 09:20 · PVG 17:20 · LAX 02:20 · JFK 05:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.