One LeetCode problem per day!
<Problem Number> <Problem Title> - <Problem Difficulty>
<Initial thoughts> (Notes on your high level approach)
<Implementation> (Copy and paste your implementation here)
<Afterthoughts> (Reflections on your approach, challenges, and possible improvements)
<Results> (Copy and paste the runtime statistics for the problem from LeetCode)
80-character limit per line!
// 1337. Generic LeetCode Problem - EZPZ
// Initial thoughts:
// One plus one is two.
// Implementation:
class Solution {
public int onePlusOne() {
return 2;
}
}
// Afterthoughts:
// Maybe I could return (1 + 1) instead of 2
// Results:
// Runtime: 1337 ms, faster than 13.37% of Java online submissions for Generic LeetCode Problem.
// Memory Usage: 4.20 kB, less than 69.69% of Java online submissions for Generic LeetCode Problem.
- 03/27/2019: Palindrome Number - Easy
- 03/28/2019: Jewels and Stones - Easy
- 03/29/2019: To Lower Case - Easy
- 03/30/2019: Unique Email Addresses - Easy
- 03/31/2019: Unique Morse Code Words - Easy
- 04/01/2019: Add Two Numbers - Medium
- 04/02/2019: N-Repeated Element in size 2N Array - Easy
- 04/03/2019: Squares of a Sorted Array - Easy
- 04/04/2019: Sort Array by Parity - Easy
- 04/05/2019: Flipping an Image - Easy
- 04/06/2019: Robot Return to Origin - Easy
- 04/07/2019: Hamming Distance - Easy
- 04/08/2019: DI String Match - Easy
- 04/09/2019: Merge Two Binary Trees - Easy
- 04/10/2019: Delete Columns to Make Sorted - Easy
- 04/11/2019: Self-Dividing Numbers - Easy
- 04/12/2019: Peak Index in a Mountain Array - Easy
- 04/13/2019: Number of Recent Calls - Easy
- 04/14/2019: Array Partition I - Easy
- 04/15/2019: Available Captures for Rook - Easy
- 04/16/2019: Find Common Characters - Easy
- 04/17/2019: Swap Salary - Easy
- 04/18/2019: Merge Two Sorted Lists - Easy
- 04/19/2019: Palindrome Linked List - Easy
- 04/20/2019: Lowest Common Ancestor of a Binary Search Tree - Easy
- 04/21/2019: Container With Most Water - Medium
- 04/22/2019: Reverse Linked List - Easy
- 04/23/2019: Repeated String Match - Easy
- 04/24/2019: Shortest Unsorted Continuous Subarray - Easy
- 04/25/2019: House Robber - Easy
- 04/26/2019: String Compression - Easy
- 04/27/2019: 1-bit and 2-bit Characters - Easy
- 04/28/2019: Number of Islands - Medium
- 04/29/2019: Minimum Index Sum of Two Lists - Easy
- 04/30/2019: Valid Palindrome - Easy