From 5bef3c50bb6a6567c87a437f60d70ab477f762b9 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 7 Nov 2023 00:09:35 -0500 Subject: [PATCH] adding leetcode 128 --- lectures/20_hash_tables_I/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lectures/20_hash_tables_I/README.md b/lectures/20_hash_tables_I/README.md index 303dc15..f20afb5 100644 --- a/lectures/20_hash_tables_I/README.md +++ b/lectures/20_hash_tables_I/README.md @@ -330,7 +330,7 @@ finding the appropriate iterator location in the appropriate list, and applying ## 20.20 Resize - Must copy the contents of the current vector into a scratch vector, resize the current vector, and then re-insert -each key into the resized vector. Exercise: Write resize() +each key into the resized vector. Exercise: Write resize(). ## 20.21 Hash Table Iterator Invalidation @@ -340,4 +340,5 @@ the table. The erase function only invalidates an iterator that references the c ## 20.22 Leetcode Exercises - [Leetcode problem 1: Two Sum](https://leetcode.com/problems/two-sum/). Solution: [p1_twosum_hash_table.cpp](../../leetcode/p1_twosum_hash_table.cpp). +- [Leetcode problem 128: Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence/). Solution: [p128_longest_consecutive_sequence.cpp](../../leetcode/p128_longest_consecutive_sequence.cpp).