leetcode.com 2026-07-24
🟡3514.number-of-unique-xor-triplets-ii
🏷️ Tags
#bit_manipulation #array #math #enumeration
🟡3514.number-of-unique-xor-triplets-ii
🏷️ Tags
#bit_manipulation #array #math #enumeration
Telegraph
number-of-unique-xor-triplets-ii
You are given an integer array nums. A XOR triplet is defined as the XOR of three elements nums[i] XOR nums[j] XOR nums[k] where i <= j <= k. Return the number of unique XOR triplet values from all possible triplets (i, j, k). Example 1: Input: nums = [1…
leetcode.cn 2026-07-29
🔴3518.smallest-palindromic-rearrangement-ii
🏷️ Tags
#hash_table #math #string #combinatorics #counting
🔴3518.smallest-palindromic-rearrangement-ii
🏷️ Tags
#hash_table #math #string #combinatorics #counting
Telegraph
smallest-palindromic-rearrangement-ii
给你一个 回文 字符串 s 和一个整数 k。
leetcode.com 2026-07-29
🔴3518.smallest-palindromic-rearrangement-ii
🏷️ Tags
#hash_table #math #string #combinatorics #counting
🔴3518.smallest-palindromic-rearrangement-ii
🏷️ Tags
#hash_table #math #string #combinatorics #counting
Telegraph
smallest-palindromic-rearrangement-ii
You are given a palindromic string s and an integer k. Return the k-th lexicographically smallest palindromic permutation of s. If there are fewer than k distinct palindromic permutations, return an empty string. Note: Different rearrangements that yield…
leetcode.cn 2026-08-01
🟡486.predict-the-winner
🏷️ Tags
#recursion #array #math #dynamic_programming #game_theory
🟡486.predict-the-winner
🏷️ Tags
#recursion #array #math #dynamic_programming #game_theory
Telegraph
predict-the-winner
给你一个整数数组 nums 。玩家 1 和玩家 2 基于这个数组设计了一个游戏。 玩家 1 和玩家 2 轮流进行自己的回合,玩家 1 先手。开始时,两个玩家的初始分值都是 0 。每一回合,玩家从数组的任意一端取一个数字(即,nums[0] 或 nums[nums.length - 1]),取到的数字将会从数组中移除(数组长度减 1 )。玩家选中的数字将会加到他的得分上。当数组中没有剩余数字可取时,游戏结束。 如果玩家 1 能成为赢家,返回 true 。如果两个玩家得分相等,同样认为玩家 1 是游戏的赢家,也返回…