Skip to content

112. Path Sum#14

Open
rossy0213 wants to merge 1 commit intomainfrom
arai60-25
Open

112. Path Sum#14
rossy0213 wants to merge 1 commit intomainfrom
arai60-25

Conversation

@rossy0213
Copy link
Copy Markdown
Owner

```java
// Time spend: 00:50
class Solution {
public boolean hasPathSum(TreeNode root, int targetSum) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは OK です。

いわゆるスタックを使って書き直せますか?
スタックは ArrayDeque でしたっけ。Stack は、もう使わないんでしたっけ。
https://stackoverflow.com/questions/1386275/why-is-java-vector-and-stack-class-considered-obsolete-or-deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants