leetcode.cn 2026-08-16
🟡2029.stone-game-ix
🏷️ Tags
#greedy #minimax_algorithm #array #math #counting #game_theory #nim_game #zero_sum_game
🟡2029.stone-game-ix
🏷️ Tags
#greedy #minimax_algorithm #array #math #counting #game_theory #nim_game #zero_sum_game
Telegraph
stone-game-ix
Alice 和 Bob 再次设计了一款新的石子游戏。现有一行 n 个石子,每个石子都有一个关联的数字表示它的价值。给你一个整数数组 stones ,其中 stones[i] 是第 i 个石子的价值。 Alice 和 Bob 轮流进行自己的回合,Alice 先手。每一回合,玩家需要从 stones 中移除任一石子。
leetcode.com 2026-08-16
🟡2029.stone-game-ix
🏷️ Tags
#greedy #minimax_algorithm #array #math #counting #game_theory #nim_game #zero_sum_game
🟡2029.stone-game-ix
🏷️ Tags
#greedy #minimax_algorithm #array #math #counting #game_theory #nim_game #zero_sum_game
Telegraph
stone-game-ix
Alice and Bob continue their games with stones. There is a row of n stones, and each stone has an associated value. You are given an integer array stones, where stones[i] is the value of the ith stone. Alice and Bob take turns, with Alice starting first.…
leetcode.cn 2026-08-21
🔴3116.kth-smallest-amount-with-single-denomination-combination
🏷️ Tags
#bit_manipulation #array #math #binary_search #combinatorics #number_theory
🔴3116.kth-smallest-amount-with-single-denomination-combination
🏷️ Tags
#bit_manipulation #array #math #binary_search #combinatorics #number_theory
Telegraph
kth-smallest-amount-with-single-denomination-combination
给你一个整数数组 coins 表示不同面额的硬币,另给你一个整数 k 。 你有无限量的每种面额的硬币。但是,你 不能 组合使用不同面额的硬币。 返回使用这些硬币能制造的 第 kth 小 金额。 示例 1: 输入: coins = [3,6,9], k = 3 输出: 9 解释:给定的硬币可以制造以下金额:3元硬币产生3的倍数:3, 6, 9, 12, 15等。6元硬币产生6的倍数:6, 12, 18, 24等。9元硬币产生9的倍数:9, 18, 27, 36等。所有硬币合起来可以产生:3, 6, 9…
leetcode.com 2026-08-21
🔴3116.kth-smallest-amount-with-single-denomination-combination
🏷️ Tags
#bit_manipulation #array #math #binary_search #combinatorics #number_theory
🔴3116.kth-smallest-amount-with-single-denomination-combination
🏷️ Tags
#bit_manipulation #array #math #binary_search #combinatorics #number_theory
Telegraph
kth-smallest-amount-with-single-denomination-combination
You are given an integer array coins representing coins of different denominations and an integer k. You have an infinite number of coins of each denomination. However, you are not allowed to combine coins of different denominations. Return the kth smallest…
leetcode.com 2026-08-24
🔴1872.stone-game-viii
🏷️ Tags
#minimax_algorithm #array #math #dynamic_programming #game_theory #prefix_sum #zero_sum_game
🔴1872.stone-game-viii
🏷️ Tags
#minimax_algorithm #array #math #dynamic_programming #game_theory #prefix_sum #zero_sum_game
Telegraph
stone-game-viii
Alice and Bob take turns playing a game, with Alice starting first. There are n stones arranged in a row. On each player's turn, while the number of stones is more than one, they will do the following: