-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSOLUTION_TEMPLATE.java
More file actions
36 lines (33 loc) · 1.43 KB
/
Copy pathSOLUTION_TEMPLATE.java
File metadata and controls
36 lines (33 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* ────────────────────────────────────────────────────────────────
* Problem : <Problem Name> (LeetCode #<num>)
* Link : https://leetcode.com/problems/<slug>/
* Difficulty: 🟢 Easy | 🟡 Medium | 🔴 Hard
* Pattern : <e.g. Arrays & Hashing>
* ────────────────────────────────────────────────────────────────
*
* Intuition:
* <1-3 sentences: the key insight / why this approach works>
*
* Approach:
* 1. <step>
* 2. <step>
*
* Complexity:
* Time : O(?) — <why>
* Space : O(?) — <why>
* ────────────────────────────────────────────────────────────────
*/
public class SolutionTemplate {
// ---- Core solution -------------------------------------------------
public int solve(/* params */) {
// TODO: implement
return 0;
}
// ---- Quick local test ----------------------------------------------
public static void main(String[] args) {
SolutionTemplate s = new SolutionTemplate();
// Example:
// System.out.println(s.solve(...)); // expected: ...
}
}