LeetCode Weekly Contest 370 Summary
Overview
This article is a summary of the weekly contest. I do not plan to discuss each problem in detail; for some problems, I will only provide a rough outline. The point of this article is self-reflection and improvement.
Achieved AC in the first three problems within 23 minutes, resulting in a ranking around 300 - more like a typing contest emphasizing speed rather than a coding contest. Brief description of problem-solving:
- Problem 1: Easy problem but got stuck for 5 minutes 😒;
- Problem 2: Similar to the first one in terms of background, also easy problem, but solved faster 😋;
- Problem 3: A real medium-level problem that required a bit more thought, solved in 15 minutes, not bad 😋;
- Problem 4: Couldn’t solve. If the data range is small, it’s a simple DP problem, but couldn’t find an optimization 😒;