由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Leetcode triangle 题目clarification
相关主题
问一道题Leetcode Two Sum,我这个O(n)解法为啥不讨服务器的好呢
请教一个leetcode OJ问题请教LeetCode的3Sum
Leetcode online judge的word search是不是用dp?请问下leetcode的two sum题目
求解一道算法题e3 不是valid number么?
leetcode triganle 通不过。。。leetcode palindrome number judge cases
问一问这个题。leetcode的2sum
Leetcode上Two sum只能过3个case, VS能过,大牛进来看看是怎么回事我找不到leetcode上大数加的题
leetcode很有意思啊Leetcode的几个题。
相关话题的讨论汇总
话题: adjacent话题: triangle话题: leetcode话题: 题目
进入JobHunting版参与讨论
1 (共1页)
P******r
发帖数: 842
1
Given a triangle, find the minimum path sum from top to bottom. Each step
you may move to adjacent numbers on the row below.
这个adjacent numbers是不是i和i+1(pass oj)。要是做i-1,i,i+1不pass。
l********t
发帖数: 878
2
In the original graph, adjacent means position 1/2 is adjacent to 0 and 1;
when you program, yes, it means i and i+1, but i-1 not included.
P******r
发帖数: 842
3
恩,明白了。这样的话,logic简单些,code容易写一些。谢谢。

【在 l********t 的大作中提到】
: In the original graph, adjacent means position 1/2 is adjacent to 0 and 1;
: when you program, yes, it means i and i+1, but i-1 not included.

1 (共1页)
进入JobHunting版参与讨论
相关主题
Leetcode的几个题。leetcode triganle 通不过。。。
leetcode的题都不见了?问一问这个题。
leetcode valid number请教问题Leetcode上Two sum只能过3个case, VS能过,大牛进来看看是怎么回事
开始刷leetcode,第一道题一直有run time errorleetcode很有意思啊
问一道题Leetcode Two Sum,我这个O(n)解法为啥不讨服务器的好呢
请教一个leetcode OJ问题请教LeetCode的3Sum
Leetcode online judge的word search是不是用dp?请问下leetcode的two sum题目
求解一道算法题e3 不是valid number么?
相关话题的讨论汇总
话题: adjacent话题: triangle话题: leetcode话题: 题目