给你一个整数数组 nums
,一个整数 k
和一个整数 multiplier
。
你需要对 nums
执行 k
次操作,每次操作中:
nums
中的 最小 值 x
,如果存在多个最小值,选择最 前面 的一个。x
替换为 x * multiplier
。请你返回执行完 k
次乘运算之后,最终的 nums
数组。
+ +
示例 1:
+ +输入:nums = [2,1,3,5,6], k = 5, multiplier = 2
+ +输出:[8,4,6,5,6]
+ +解释:
+ +操作 | +结果 | +
---|---|
1 次操作后 | +[2, 2, 3, 5, 6] | +
2 次操作后 | +[4, 2, 3, 5, 6] | +
3 次操作后 | +[4, 4, 3, 5, 6] | +
4 次操作后 | +[4, 4, 6, 5, 6] | +
5 次操作后 | +[8, 4, 6, 5, 6] | +
示例 2:
+ +输入:nums = [1,2], k = 3, multiplier = 4
+ +输出:[16,8]
+ +解释:
+ +操作 | +结果 | +
---|---|
1 次操作后 | +[4, 2] | +
2 次操作后 | +[4, 8] | +
3 次操作后 | +[16, 8] | +
+ +
提示:
+ +1 <= nums.length <= 100
1 <= nums[i] <= 100
1 <= k <= 10
1 <= multiplier <= 5
单词收录总数
diff --git a/tryGoPy/CHANGELOG.md b/tryGoPy/CHANGELOG.md deleted file mode 100644 index 4f9bc2b1e573..000000000000 --- a/tryGoPy/CHANGELOG.md +++ /dev/null @@ -1,88 +0,0 @@ - -PS F:\OtherApps\Program\Git\Store\Store20_LeetCode> git pull origin master -remote: Enumerating objects: 47, done. -remote: Counting objects: 100% (47/47), done. -remote: Compressing objects: 100% (25/25), done. 347\232\204\346\243\213\345\255\220\346\225\260\346\250\241\346\213\237-144303138.md" -remote: Total 47 (delta 20), reused 45 (delta 19), pack-reused 0 (from 0) -Unpacking objects: 100% (47/47), 27.96 KiB | 10.00 KiB/s, done. 3-144123453.md" -From ssh.github.com:LetMeFly666/LeetCode - * branch master -> FETCH_HEAD - cd0c22da603..9392e7b5778 master -> origin/master -Updating cd0c22da603..9392e7b5778 -Fast-forward - Codes/0935-knight-dialer.cpp | 46 ++++ - Codes/0935-knight-dialer.go | 41 ++++ - Codes/0935-knight-dialer.java | 42 ++++ - Codes/0935-knight-dialer.py | 31 +++ - ...rmine-color-of-a-chessboard-square_20241209.cpp | 16 ++ - ...ermine-color-of-a-chessboard-square_20241209.go | 11 + - ...mine-color-of-a-chessboard-square_20241209.java | 11 + - ...ermine-color-of-a-chessboard-square_20241209.py | 9 + - README.md | 4 +- - ...243\253\346\213\250\345\217\267\345\231\250.md" | 250 +++++++++++++++++++++ - ...255\220\347\232\204\351\242\234\350\211\262.md" | 28 +++ - .../Other-AI-FL-FederatedLearning-KaiTiBaoGao.md | 197 ++++++++++++++++ - Solutions/Other-CloudflareWorkers-How2use.md | 172 ++++++++++++++ - Solutions/Other-English-LearningNotes-SomeWords.md | 15 +- - Solutions/Other-Japanese-LearningNotes.md | 20 +- - api/img/handler.js | 23 ++ - api/img/url.js | 9 + - api/main.js | 37 +++ - .../.cache/wrangler/wrangler-account.json | 6 + - api/node_modules/.mf/cf.json | 1 + - api/wrangler.toml | 3 + - tryGoPy/temp-Count-uic.js | 31 +++ - 22 files changed, 998 insertions(+), 5 deletions(-) - create mode 100644 Codes/0935-knight-dialer.cpp - create mode 100644 Codes/0935-knight-dialer.go - create mode 100644 Codes/0935-knight-dialer.java - create mode 100644 Codes/0935-knight-dialer.py - create mode 100644 Codes/1812-determine-color-of-a-chessboard-square_20241209.cpp - create mode 100644 Codes/1812-determine-color-of-a-chessboard-square_20241209.go - create mode 100644 Codes/1812-determine-color-of-a-chessboard-square_20241209.java - create mode 100644 Codes/1812-determine-color-of-a-chessboard-square_20241209.py - create mode 100644 "Solutions/LeetCode 0935.\351\252\221\345\243\253\346\213\250\345\217\267\345\231\250.md" - create mode 100644 Solutions/Other-AI-FL-FederatedLearning-KaiTiBaoGao.md - create mode 100644 Solutions/Other-CloudflareWorkers-How2use.md - create mode 100644 api/img/handler.js - create mode 100644 api/img/url.js - create mode 100644 api/main.js - create mode 100644 api/node_modules/.cache/wrangler/wrangler-account.json - create mode 100644 api/node_modules/.mf/cf.json - create mode 100644 api/wrangler.toml - create mode 100644 tryGoPy/temp-Count-uic.js - - -PS F:\OtherApps\Program\Git\Store\Store20_LeetCode> git pull origin master -remote: Enumerating objects: 18, done. -remote: Counting objects: 100% (18/18), done. -remote: Compressing objects: 100% (10/10), done. -remote: Total 18 (delta 5), reused 18 (delta 5), pack-reused 0 (from 0) -Unpacking objects: 100% (18/18), 4.65 KiB | 3.00 KiB/s, done. -From ssh.github.com:LetMeFly666/LeetCode - * branch master -> FETCH_HEAD - 9392e7b5778..5416d7f90ab master -> origin/master -Updating 9392e7b5778..5416d7f90ab -Fast-forward - Solutions/Other-CloudflareWorkers-How2use.md | 68 ++++++++++++++++++++++++++++ - api/.gitignore | 1 + - api/github/public/README.md | 21 +++++++++ - api/github/public/demo.html | 15 ++++++ - api/github/public/handler.js | 26 +++++++++++ - api/github/public/url.js | 5 ++ - api/github/public/utils/calculateWidth.js | 17 +++++++ - api/img/handler.js | 6 +++ - api/img/url.js | 6 +++ - api/main.js | 9 ++-- - 10 files changed, 171 insertions(+), 3 deletions(-) - create mode 100644 api/.gitignore - create mode 100644 api/github/public/README.md - create mode 100644 api/github/public/demo.html - create mode 100644 api/github/public/handler.js - create mode 100644 api/github/public/url.js - create mode 100644 api/github/public/utils/calculateWidth.js \ No newline at end of file diff --git "a/tryGoPy/temp-20241206-\345\233\236\345\233\275\345\220\216-\350\207\252\345\212\250\350\204\232\346\234\254\347\232\204output.md" "b/tryGoPy/temp-20241206-\345\233\236\345\233\275\345\220\216-\350\207\252\345\212\250\350\204\232\346\234\254\347\232\204output.md" deleted file mode 100644 index b837c574234c..000000000000 --- "a/tryGoPy/temp-20241206-\345\233\236\345\233\275\345\220\216-\350\207\252\345\212\250\350\204\232\346\234\254\347\232\204output.md" +++ /dev/null @@ -1,81 +0,0 @@ - -... - -## What's more - -[本人](https://github.com/LetMeFly666)保留所有权,禁爬虫🚫 - -[999 7d598c78dc3] update: 添加问题“999.可以被一步捕获的棋子数”的代码和题解 - 6 files changed, 295 insertions(+), 1 deletion(-) - create mode 100644 Codes/0999-available-captures-for-rook.cpp - create mode 100644 "Solutions/LeetCode 0999.\345\217\257\344\273\245\350\242\253\344\270\200\346\255\245\346\215\225\350\216\267\347\232\204\346\243\213\345\255\220\346\225\260.md" - create mode 100644 "tryGoPy/temp-20241206-\345\233\236\345\233\275\345\220\216.md" - create mode 100644 tryGoPy/tttemp-gitdir-varous-pulllog.txt -Enumerating objects: 17, done. -Counting objects: 100% (17/17), done. -Delta compression using up to 8 threads -Compressing objects: 100% (11/11), done. -Writing objects: 100% (11/11), 5.63 KiB | 1.41 MiB/s, done. -Total 11 (delta 6), reused 0 (delta 0), pack-reused 0 -remote: Resolving deltas: 100% (6/6), completed with 6 local objects. -remote: -remote: Create a pull request for '999' on GitHub by visiting: -remote: https://github.com/LetMeFly666/LeetCode/pull/new/999 -remote: -To ssh.github.com:LetMeFly666/LeetCode - * [new branch] 999 -> 999 -Branch '999' set up to track remote branch '999' from 'origin'. -https://github.com/LetMeFly666/LeetCode/pull/643 - -✓ Merged pull request #643 (添加问题“999.可以被一步捕获的棋子数”的代码和题解) -remote: Enumerating objects: 1, done. -remote: Counting objects: 100% (1/1), done. -remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) -Unpacking objects: 100% (1/1), 998 bytes | 22.00 KiB/s, done. -From ssh.github.com:LetMeFly666/LeetCode - * branch master -> FETCH_HEAD - d4a62f0e38f..cd0c22da603 master -> origin/master -Updating d4a62f0e38f..cd0c22da603 -Fast-forward - Codes/0999-available-captures-for-rook.cpp | 83 +++++++++++++++ - README.md | 1 + - ...232\204\346\243\213\345\255\220\346\225\260.md" | 118 +++++++++++++++++++++ - Solutions/Other-Japanese-LearningNotes.md | 9 +- - ...241206-\345\233\236\345\233\275\345\220\216.md" | 53 +++++++++ - tryGoPy/tttemp-gitdir-varous-pulllog.txt | 32 ++++++ - 6 files changed, 295 insertions(+), 1 deletion(-) - create mode 100644 Codes/0999-available-captures-for-rook.cpp - create mode 100644 "Solutions/LeetCode 0999.\345\217\257\344\273\245\350\242\253\344\270\200\346\255\245\346\215\225\350\216\267\347\232\204\346\243\213\345\255\220\346\225\260.md" - create mode 100644 "tryGoPy/temp-20241206-\345\233\236\345\233\275\345\220\216.md" - create mode 100644 tryGoPy/tttemp-gitdir-varous-pulllog.txt -✓ Deleted branch 999 and switched to branch master -remote: Enumerating objects: 12, done. -remote: Counting objects: 100% (12/12), done. -remote: Compressing objects: 100% (8/8), done. -Uremote: Total 12 (delta 4), reused 12 (delta 4), pack-reused 0 (from 0)npacking objects: 33% (4/12) -Unpacking objects: 100% (12/12), 12.90 KiB | 30.00 KiB/s, done. -From gitcode.com:Tisfy/gitcode_knowledge - 8b63ee7..028cfa8 main -> origin/main -Updating 8b63ee7..028cfa8 -Fast-forward - ...243\213\345\255\220\346\225\260\346\250\241\346\213\237-144303138.md" | 1 + - ...72\244\346\233\277\347\273\204I\351\201\215\345\216\206-144071026.md" | 1 + - ...3\204II\346\273\221\345\212\250\347\252\227\345\217\243-144123453.md" | 1 + - 3 files changed, 3 insertions(+) - create mode 100644 "CSDN\345\215\232\346\226\207\345\244\207\344\273\275/LeetCode0999.\345\217\257\344\273\245\350\242\253\344\270\200\346\255\245\346\215\225\350\216\267\347\232\204\346\243\213\345\255\220\346\225\260\346\250\241\346\213\237-144303138.md" - create mode 100644 "CSDN\345\215\232\346\226\207\345\244\207\344\273\275/LeetCode3206.\344\272\244\346\233\277\347\273\204I\351\201\215\345\216\206-144071026.md" - create mode 100644 "CSDN\345\215\232\346\226\207\345\244\207\344\273\275/LeetCode3208.\344\272\244\346\233\277\347\273\204II\346\273\221\345\212\250\347\252\227\345\217\243-144123453.md" -Enumerating objects: 6, done. -Counting objects: 100% (6/6), done. -Delta compression using up to 8 threads -Compressing objects: 100% (4/4), done. -Writing objects: 100% (4/4), 3.57 KiB | 3.57 MiB/s, done. -Total 4 (delta 1), reused 0 (delta 0), pack-reused 0 -remote: Resolving deltas: 100% (1/1), completed with 1 local object. -To github.com:LetMeFly666/LeetCode.git - d1388b9..028cfa8 main -> From_GitCode_CSDN \ No newline at end of file