Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleHoNguyen committed Sep 17, 2024
2 parents e4952af + e338789 commit 87da335
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 45 deletions.
4 changes: 2 additions & 2 deletions 167TwoSumII1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 167. Two Sum II - Input Array Is Sorted

labels: Two-Pointers, Medium
labels: TwoPointers, Medium

Time Completed: 23:05 minutes

Expand Down Expand Up @@ -38,4 +38,4 @@ def twoSum(self, numbers: List[int], target: int) -> List[int]:
elif currentSum > target:
index2 -= 1
else:
index1 += 1
index1 += 1
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ This is only to record and track my own progress.

|Date Completed|Problem Name|Time Completed (minutes)|Tags
|:---|:---|---:|:---|
|2024-09-09|[125. Valid Palindrome](125ValidPalindrome1.md)|18:22|[![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Two-Pointers-473080)](./tags/Two-Pointers.md)|
|2024-09-14|[167. Two Sum II - Input Array Is Sorted](167TwoSumII1.md)|23:05|[![](https://img.shields.io/badge/tag-Medium-6f4790)](./tags/Medium.md) [![](https://img.shields.io/badge/tag-TwoPointers-4b9e32)](./tags/TwoPointers.md)|
|2024-09-11|[125. Valid Palindrome](125ValidPalindrome1.md)|18:22|[![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Two-Pointers-473080)](./tags/Two-Pointers.md)|
|2024-08-26|[347. Top K Frequent Elements](347TopKFrequentElements2.md)|22:|[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-6f4790)](./tags/Medium.md)|
|2024-08-26|[49. Group Anagrams](49GroupAnagrams2.md)|14:14|[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-6f4790)](./tags/Medium.md)|
|2024-08-23|[1. Two Sum](1TwoSum1.md)|15:31|[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md)|
Expand All @@ -30,4 +31,4 @@ This is only to record and track my own progress.
|2024-08-23|[1. Two Sum](1TwoSum2.md)|4:33|[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](217ContainsDuplicate2.md)|1:12|[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md)|

[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-6f4790)](./tags/Medium.md) [![](https://img.shields.io/badge/tag-Two-Pointers-473080)](./tags/Two-Pointers.md)
[![](https://img.shields.io/badge/tag-Arrays-c5d714)](./tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-84f8cf)](./tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-9bf4b7)](./tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-6f4790)](./tags/Medium.md) [![](https://img.shields.io/badge/tag-Two-Pointers-473080)](./tags/Two-Pointers.md) [![](https://img.shields.io/badge/tag-TwoPointers-4b9e32)](./tags/TwoPointers.md)
26 changes: 13 additions & 13 deletions tags/Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

|Date Completed|Problem Name|Time Completed (minutes)|Tags
|:---|:---|---:|:---|
|2024-08-26|[347. Top K Frequent Elements](../347TopKFrequentElements2.md)|22:|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-26|[49. Group Anagrams](../49GroupAnagrams2.md)|14:14|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-23|[1. Two Sum](../1TwoSum1.md)|15:31|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram2.md)|18:38|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[128. Longest Consecutive Sequence](../128LongestConsecutiveSequence.md)|N/A|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram1.md)|12:23|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[49. Group Anagrams](../49GroupAnagrams1.md)|31:05|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-23|[238. Product of Array Except Self](../238ProductOfArrayExceptSelf1.md)|45:00|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicateAttempt1.md)|5:00|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[36. Valid Sudoku](../36ValidSudoku1.md)|45:00|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-23|[347. Top K Frequent Elements](../347TopKFrequentElements1.md)|35:00|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-a168f4)](../tags/Medium.md)|
|2024-08-23|[1. Two Sum](../1TwoSum2.md)|4:33|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicate2.md)|1:12|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-26|[347. Top K Frequent Elements](../347TopKFrequentElements2.md)|22:|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-26|[49. Group Anagrams](../49GroupAnagrams2.md)|14:14|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-23|[1. Two Sum](../1TwoSum1.md)|15:31|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram2.md)|18:38|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[128. Longest Consecutive Sequence](../128LongestConsecutiveSequence.md)|N/A|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram1.md)|12:23|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[49. Group Anagrams](../49GroupAnagrams1.md)|31:05|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-23|[238. Product of Array Except Self](../238ProductOfArrayExceptSelf1.md)|45:00|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicateAttempt1.md)|5:00|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[36. Valid Sudoku](../36ValidSudoku1.md)|45:00|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-23|[347. Top K Frequent Elements](../347TopKFrequentElements1.md)|35:00|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md) [![](https://img.shields.io/badge/tag-Medium-e2851f)](../tags/Medium.md)|
|2024-08-23|[1. Two Sum](../1TwoSum2.md)|4:33|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicate2.md)|1:12|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
14 changes: 7 additions & 7 deletions tags/Easy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

|Date Completed|Problem Name|Time Completed (minutes)|Tags
|:---|:---|---:|:---|
|2024-09-09|[125. Valid Palindrome](../125ValidPalindrome1.md)|18:22|[![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Two-Pointers-e2851f)](../tags/Two-Pointers.md)|
|2024-08-23|[1. Two Sum](../1TwoSum1.md)|15:31|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram2.md)|18:38|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram1.md)|12:23|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicateAttempt1.md)|5:00|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[1. Two Sum](../1TwoSum2.md)|4:33|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicate2.md)|1:12|[![](https://img.shields.io/badge/tag-Arrays-4b9e32)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-25a9f1)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-33b5de)](../tags/Hashing.md)|
|2024-09-11|[125. Valid Palindrome](../125ValidPalindrome1.md)|18:22|[![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Two-Pointers-72fcc)](../tags/Two-Pointers.md)|
|2024-08-23|[1. Two Sum](../1TwoSum1.md)|15:31|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram2.md)|18:38|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[242. Valid Anagram](../242ValidAnagram1.md)|12:23|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicateAttempt1.md)|5:00|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[1. Two Sum](../1TwoSum2.md)|4:33|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
|2024-08-23|[217. Contains Duplicate](../217ContainsDuplicate2.md)|1:12|[![](https://img.shields.io/badge/tag-Arrays-25a9f1)](../tags/Arrays.md) [![](https://img.shields.io/badge/tag-Easy-33b5de)](../tags/Easy.md) [![](https://img.shields.io/badge/tag-Hashing-a168f4)](../tags/Hashing.md)|
Loading

0 comments on commit 87da335

Please sign in to comment.