Skip to content

Commit

Permalink
Update 0454.四数相加II.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wisuky authored Aug 6, 2023
1 parent b65d1f8 commit 692647b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0454.四数相加II.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

## 思路

本题咋眼一看好像和[0015.三数之和](https://programmercarl.com/0015.三数之和.html)[0018.四数之和](https://programmercarl.com/0018.四数之和.html)差不多,其实差很多。
本题乍眼一看好像和[0015.三数之和](https://programmercarl.com/0015.三数之和.html)[0018.四数之和](https://programmercarl.com/0018.四数之和.html)差不多,其实差很多。

**本题是使用哈希法的经典题目,而[0015.三数之和](https://programmercarl.com/0015.三数之和.html)[0018.四数之和](https://programmercarl.com/0018.四数之和.html)并不合适使用哈希法**,因为三数之和和四数之和这两道题目使用哈希法在不超时的情况下做到对结果去重是很困难的,很有多细节需要处理。

Expand Down

0 comments on commit 692647b

Please sign in to comment.