From 2d62bd913b04bed0bdf59a0dbf53fdfbd734f5e4 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Mon, 8 Jul 2024 16:51:35 +0800 Subject: [PATCH] feat: add solutions to lc problem: No.3213 No.3213.Construct String with Minimum Cost --- .../2500-2599/2582.Pass the Pillow/README.md | 4 +- .../3100.Water Bottles II/Solution.rs | 4 +- .../README.md | 246 +++++++++++++++++- .../README_EN.md | 246 +++++++++++++++++- .../Solution.cpp | 63 +++++ .../Solution.go | 78 ++++++ .../Solution.java | 62 +++++ .../Solution.py | 25 ++ 8 files changed, 713 insertions(+), 15 deletions(-) create mode 100644 solution/3200-3299/3213.Construct String with Minimum Cost/Solution.cpp create mode 100644 solution/3200-3299/3213.Construct String with Minimum Cost/Solution.go create mode 100644 solution/3200-3299/3213.Construct String with Minimum Cost/Solution.java create mode 100644 solution/3200-3299/3213.Construct String with Minimum Cost/Solution.py diff --git a/solution/2500-2599/2582.Pass the Pillow/README.md b/solution/2500-2599/2582.Pass the Pillow/README.md index 42d9357793c80..7995ffa41a767 100644 --- a/solution/2500-2599/2582.Pass the Pillow/README.md +++ b/solution/2500-2599/2582.Pass the Pillow/README.md @@ -19,9 +19,7 @@ tags: -

n 个人站成一排,按从 1n 编号。

- -

最初,排在队首的第一个人拿着一个枕头。每秒钟,拿着枕头的人会将枕头传递给队伍中的下一个人。一旦枕头到达队首或队尾,传递方向就会改变,队伍会继续沿相反方向传递枕头。

+

n 个人站成一排,按从 1n 编号。最初,排在队首的第一个人拿着一个枕头。每秒钟,拿着枕头的人会将枕头传递给队伍中的下一个人。一旦枕头到达队首或队尾,传递方向就会改变,队伍会继续沿相反方向传递枕头。