LeetCode
LeetCode copied to clipboard
Update Generate.java
- a typo: class name should be Solution :)
- There is no need to check "if (numRows <= 0)"
- The class name should be the same. Why does the class name should be the same? I'm confused. this code can't pass the leetcode online judge.
you Can add my QQ 215573479
On Wednesday, October 22, 2014, xbz [email protected] wrote:
- The class name should be the same. Why does the class name should be the same? I'm confused. this code can't pass the leetcode online judge.
— Reply to this email directly or view it on GitHub https://github.com/yuzhangcmu/LeetCode_algorithm/pull/2#issuecomment-60054192 .
-
The file name is the Generate. When you paste it in the Leetcode, you should change the name.
But the code is ran in the Eclipse.
On Oct 22, 2014, at 1:50 AM, xbz [email protected] wrote:
The class name should be the same. Why does the class name should be the same? I'm confused. this code can't pass the leetcode online judge. — Reply to this email directly or view it on GitHub.
sorry, i'm not a Java coder and think it's a bug.