From 119eee516223ed0748cbb26be784b93adb61e04b Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sun, 10 Nov 2024 22:24:01 +0800 Subject: [PATCH] feat: add biweekly contest 143 and weeky contest 423 --- .../README_EN.md | 12 +- .../0909.Snakes and Ladders/README_EN.md | 4 +- .../1257.Smallest Common Region/README_EN.md | 1 + solution/2600-2699/2623.Memoize/README_EN.md | 2 +- .../README_EN.md | 2 +- .../README.md | 2 +- .../README.md | 156 ++++++++++++++++++ .../README_EN.md | 154 +++++++++++++++++ .../Solution.cpp | 14 ++ .../Solution.go | 11 ++ .../Solution.java | 13 ++ .../Solution.py | 10 ++ .../Solution.ts | 11 ++ .../README.md | 114 +++++++++++++ .../README_EN.md | 112 +++++++++++++ .../README.md | 114 +++++++++++++ .../README_EN.md | 112 +++++++++++++ .../README.md | 111 +++++++++++++ .../README_EN.md | 108 ++++++++++++ .../README.md | 102 ++++++++++++ .../README_EN.md | 100 +++++++++++ .../README.md | 109 ++++++++++++ .../README_EN.md | 107 ++++++++++++ .../3351.Sum of Good Subsequences/README.md | 107 ++++++++++++ .../README_EN.md | 104 ++++++++++++ .../README.md | 123 ++++++++++++++ .../README_EN.md | 120 ++++++++++++++ solution/CONTEST_README.md | 14 ++ solution/CONTEST_README_EN.md | 14 ++ solution/README.md | 8 + solution/README_EN.md | 8 + solution/contest.json | 2 +- 32 files changed, 1969 insertions(+), 12 deletions(-) create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/README.md create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/README_EN.md create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/Solution.cpp create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/Solution.go create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/Solution.java create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/Solution.py create mode 100644 solution/3300-3399/3345.Smallest Divisible Digit Product I/Solution.ts create mode 100644 solution/3300-3399/3346.Maximum Frequency of an Element After Performing Operations I/README.md create mode 100644 solution/3300-3399/3346.Maximum Frequency of an Element After Performing Operations I/README_EN.md create mode 100644 solution/3300-3399/3347.Maximum Frequency of an Element After Performing Operations II/README.md create mode 100644 solution/3300-3399/3347.Maximum Frequency of an Element After Performing Operations II/README_EN.md create mode 100644 solution/3300-3399/3348.Smallest Divisible Digit Product II/README.md create mode 100644 solution/3300-3399/3348.Smallest Divisible Digit Product II/README_EN.md create mode 100644 solution/3300-3399/3349.Adjacent Increasing Subarrays Detection I/README.md create mode 100644 solution/3300-3399/3349.Adjacent Increasing Subarrays Detection I/README_EN.md create mode 100644 solution/3300-3399/3350.Adjacent Increasing Subarrays Detection II/README.md create mode 100644 solution/3300-3399/3350.Adjacent Increasing Subarrays Detection II/README_EN.md create mode 100644 solution/3300-3399/3351.Sum of Good Subsequences/README.md create mode 100644 solution/3300-3399/3351.Sum of Good Subsequences/README_EN.md create mode 100644 solution/3300-3399/3352.Count K-Reducible Numbers Less Than N/README.md create mode 100644 solution/3300-3399/3352.Count K-Reducible Numbers Less Than N/README_EN.md diff --git a/solution/0700-0799/0777.Swap Adjacent in LR String/README_EN.md b/solution/0700-0799/0777.Swap Adjacent in LR String/README_EN.md index ab76e1f0608ac..36a458e0bed5e 100644 --- a/solution/0700-0799/0777.Swap Adjacent in LR String/README_EN.md +++ b/solution/0700-0799/0777.Swap Adjacent in LR String/README_EN.md @@ -17,15 +17,15 @@ tags: -

In a string composed of 'L', 'R', and 'X' characters, like "RXXLRXRXL", a move consists of either replacing one occurrence of "XL" with "LX", or replacing one occurrence of "RX" with "XR". Given the starting string start and the ending string end, return True if and only if there exists a sequence of moves to transform start to end.

+

In a string composed of 'L', 'R', and 'X' characters, like "RXXLRXRXL", a move consists of either replacing one occurrence of "XL" with "LX", or replacing one occurrence of "RX" with "XR". Given the starting string start and the ending string result, return True if and only if there exists a sequence of moves to transform start to result.

 

Example 1:

-Input: start = "RXXLRXRXL", end = "XRLXXRRLX"
+Input: start = "RXXLRXRXL", result = "XRLXXRRLX"
 Output: true
-Explanation: We can transform start to end following these steps:
+Explanation: We can transform start to result following these steps:
 RXXLRXRXL ->
 XRXLRXRXL ->
 XRLXRXRXL ->
@@ -36,7 +36,7 @@ XRLXXRRLX
 

Example 2:

-Input: start = "X", end = "L"
+Input: start = "X", result = "L"
 Output: false
 
@@ -45,8 +45,8 @@ XRLXXRRLX diff --git a/solution/0900-0999/0909.Snakes and Ladders/README_EN.md b/solution/0900-0999/0909.Snakes and Ladders/README_EN.md index d4edb85aaea42..9daef974915b4 100644 --- a/solution/0900-0999/0909.Snakes and Ladders/README_EN.md +++ b/solution/0900-0999/0909.Snakes and Ladders/README_EN.md @@ -36,13 +36,13 @@ tags:

A board square on row r and column c has a snake or ladder if board[r][c] != -1. The destination of that snake or ladder is board[r][c]. Squares 1 and n2 are not the starting points of any snake or ladder.

-

Note that you only take a snake or ladder at most once per move. If the destination to a snake or ladder is the start of another snake or ladder, you do not follow the subsequent snake or ladder.

+

Note that you only take a snake or ladder at most once per dice roll. If the destination to a snake or ladder is the start of another snake or ladder, you do not follow the subsequent snake or ladder.

-

Return the least number of moves required to reach the square n2. If it is not possible to reach the square, return -1.

+

Return the least number of dice rolls required to reach the square n2. If it is not possible to reach the square, return -1.

 

Example 1:

diff --git a/solution/1200-1299/1257.Smallest Common Region/README_EN.md b/solution/1200-1299/1257.Smallest Common Region/README_EN.md index a0a31909445cb..0c3555319c989 100644 --- a/solution/1200-1299/1257.Smallest Common Region/README_EN.md +++ b/solution/1200-1299/1257.Smallest Common Region/README_EN.md @@ -64,6 +64,7 @@ region2 = "New York"
  • 1 <= regions[i][j].length, region1.length, region2.length <= 20
  • region1 != region2
  • regions[i][j], region1, and region2 consist of English letters.
  • +
  • The input is generated such that there exists a region which contains all the other regions, either directly or indirectly.
  • diff --git a/solution/2600-2699/2623.Memoize/README_EN.md b/solution/2600-2699/2623.Memoize/README_EN.md index 9362ae300fbf5..633170549a1e5 100644 --- a/solution/2600-2699/2623.Memoize/README_EN.md +++ b/solution/2600-2699/2623.Memoize/README_EN.md @@ -85,7 +85,7 @@ values = [[5],[]]