Jira Ticket: [LND-XXX]
Date Started: [YYYY-MM-DD]
Date Completed: [YYYY-MM-DD]
Time Spent: [X hours]
Difficulty: [Easy/Medium/Hard]
Pattern Used: [Pattern Name]
[Write or paste the problem statement here]
Example 1:
Input:
Output:
Explanation:
Example 2:
Input:
Output:
Explanation:
- What are we asked to find/compute?
- What are the inputs and outputs?
- What are the edge cases?
- Why did I choose this pattern?
- What clues in the problem pointed to this pattern?
Algorithm Steps: 1. 2. 3. 4.
Time Complexity: O(?)
Space Complexity: O(?)
[Draw or describe how the algorithm works with an example]
Example: [1, 2, 3, 4, 5]
Step 1: ...
Step 2: ...
Step 3: ...
// Your solution here
function solutionName(params) {
// Implementation
}- Line X-Y:
- Line Z:
Input:
Expected Output:
Actual Output:
Status: ✅ Pass / ❌ FailInput:
Expected Output:
Actual Output:
Status: ✅ Pass / ❌ FailInput:
Expected Output:
Actual Output:
Status: ✅ Pass / ❌ FailInput:
Expected Output:
Actual Output:
Status: ✅ Pass / ❌ FailBreakdown:
- Operation 1: O(?)
- Operation 2: O(?)
- Overall: O(?)
Breakdown:
- Data structure 1: O(?)
- Data structure 2: O(?)
- Overall: O(?)
- When to use this pattern:
- When NOT to use this pattern:
- [Problem Name] - [Link or Jira ID]
- [Problem Name] - [Link or Jira ID]
- [Problem Name] - [Link or Jira ID]
- [Resource 1]
- [Resource 2]
- Pattern Guide: [Link to pattern in PATTERNS_GUIDE.md]
- What if the input was...?
- What if we needed to...?
- How would this change if...?
- Problem understood
- Pattern identified
- Brute force solution
- Optimized solution
- All test cases pass
- Complexity analyzed
- Code reviewed
- Learnings documented
- Jira ticket updated
[Any additional notes, observations, or thoughts]
Last Updated: [Date]