Skip to content

Commit 03f0f27

Browse files
committed
feat: Set up Week 2 problems
Adds the initial boilerplate files for the week 2 problems, including: - Valid Anagram (Easy) - Climbing Stairs (Easy) - Product of Array Except Self (Medium) - 3Sum (Medium) - Validate Binary Search Tree (Medium)
1 parent d4312fb commit 03f0f27

File tree

5 files changed

+107
-0
lines changed

5 files changed

+107
-0
lines changed

3sum/renovizee.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import java.util.List;
2+
3+
4+
// tag renovizee 2week unresolved
5+
// https://github.com/DaleStudy/leetcode-study/issues/241
6+
// https://leetcode.com/problems/3sum/
7+
class Solution {
8+
// Solv1 :
9+
// 시간복잡도 : O(n)
10+
// 공간복잡도 : O(n)
11+
public List<List<Integer>> threeSum(int[] nums) {
12+
13+
}
14+
}
15+
16+
//-------------------------------------------------------------------------------------------------------------
17+
// Java 문법 피드백
18+
//
19+
//-------------------------------------------------------------------------------------------------------------

climbing-stairs/renovizee.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
// tag renovizee 2week
4+
// https://github.com/DaleStudy/leetcode-study/issues/230
5+
// https://leetcode.com/problems/climbing-stairs/ #70 #Easy
6+
class Solution {
7+
// Solv1 :
8+
// 시간복잡도 : O(n)
9+
// 공간복잡도 : O(n)
10+
public int climbStairs(int n) {
11+
12+
}
13+
}
14+
//-------------------------------------------------------------------------------------------------------------
15+
// Java 문법 피드백
16+
//
17+
//-------------------------------------------------------------------------------------------------------------
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
// tag renovizee 2week
4+
// https://github.com/DaleStudy/leetcode-study/issues/239
5+
// https://leetcode.com/problems/product-of-array-except-self/
6+
class Solution {
7+
// Solv1 :
8+
// 시간복잡도 : O(n)
9+
// 공간복잡도 : O(n)
10+
public int[] productExceptSelf(int[] nums) {
11+
12+
}
13+
}
14+
15+
//-------------------------------------------------------------------------------------------------------------
16+
// Java 문법 피드백
17+
//
18+
//-------------------------------------------------------------------------------------------------------------

valid-anagram/renovizee.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
// tag renovizee 2week
4+
// https://github.com/DaleStudy/leetcode-study/issues/218
5+
// https://leetcode.com/problems/valid-anagram/ #242 #Easy
6+
class Solution {
7+
// Solv1 :
8+
// 시간복잡도 : O(n)
9+
// 공간복잡도 : O(n)
10+
public boolean isAnagram(String s, String t) {
11+
12+
}
13+
}
14+
15+
//-------------------------------------------------------------------------------------------------------------
16+
// Java 문법 피드백
17+
//
18+
//-------------------------------------------------------------------------------------------------------------
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
3+
// tag renovizee 2week
4+
// https://github.com/DaleStudy/leetcode-study/issues/251
5+
// https://leetcode.com/problems/validate-binary-search-tree/
6+
class Solution {
7+
8+
/**
9+
* Definition for a binary tree node.
10+
* public class TreeNode {
11+
* int val;
12+
* TreeNode left;
13+
* TreeNode right;
14+
* TreeNode() {}
15+
* TreeNode(int val) { this.val = val; }
16+
* TreeNode(int val, TreeNode left, TreeNode right) {
17+
* this.val = val;
18+
* this.left = left;
19+
* this.right = right;
20+
* }
21+
* }
22+
*/
23+
24+
// Solv1 :
25+
// 시간복잡도 : O(n)
26+
// 공간복잡도 : O(n)
27+
public boolean isValidBST(TreeNode root) {
28+
29+
}
30+
}
31+
32+
//-------------------------------------------------------------------------------------------------------------
33+
// Java 문법 피드백
34+
//
35+
//-------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)