Weekly Contest 363 周赛题目解析

Posted on Sat 23 September 2023 in Leetcode • Tagged with Contest

2023-09 Leetcode Weekly Contest 363 第 363 场力扣周赛 | 2859. Sum of Values at Indices With K Set Bits 计算 K 置位下标对应元素的和 | 2860. Happy Students 让所有学生保持开心的分组方法数 | 2861. Maximum Number of Alloys 最大合金数 | 2862. Maximum Element-Sum of a Complete Subset of Indices 完全子集的最大元素和 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 362 周赛题目解析

Posted on Sun 17 September 2023 in Leetcode • Tagged with Contest

2023-09 Leetcode Weekly Contest 362 第 362 场力扣周赛 | 2848. Points That Intersect With Cars 与车相交的点 | 2849. Determine if a Cell Is Reachable at a Given Time 判断能否在给定时间到达单元格 | 2850. Minimum Moves to Spread Stones Over Grid 将石头分散到网格图的最少移动次数 | 2851. String Transformation 字符串转换 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 359 周赛题目解析

Posted on Thu 31 August 2023 in Leetcode • Tagged with Contest

2023-08 Leetcode Weekly Contest 359 第 359 场力扣周赛 | 2828. Check if a String Is an Acronym of Words 判别首字母缩略词 | 2829. Determine the Minimum Sum of a k-avoiding Array k-avoiding 数组的最小总和 | 2830. Maximize the Profit as the Salesman 销售利润最大化 | 2831. Find the Longest Equal Subarray 找出最长等值子数组 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 358 周赛题目解析

Posted on Wed 30 August 2023 in Leetcode • Tagged with Contest

2023-08 Leetcode Weekly Contest 358 第 358 场力扣周赛 | 2815. Max Pair Sum in an Array 数组中的最大数对和 | 2816. Double a Number Represented as a Linked List 翻倍以链表形式表示的数字 | 2817. Minimum Absolute Difference Between Elements With Constraint 限制条件下元素之间的最小绝对差 | 2818. Apply Operations to Maximize Score 操作使得分最大 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 357 周赛题目解析

Posted on Wed 09 August 2023 in Leetcode • Tagged with Contest

2023-07 Leetcode Weekly Contest 357 第 357 场力扣周赛 | 2810. Faulty Keyboard 故障键盘 | 2811. Check if it is Possible to Split Array 判断是否能拆分数组 | 2812. Find the Safest Path in a Grid 找出最安全路径 | 2813. Maximum Elegance of a K-Length Subsequence 子序列最大优雅度 | Solution to contest problems 赛题讲解 | Dijkstra 迪科斯特拉算法 | Greedy 贪心算法


Continue reading

Weekly Contest 356 周赛题目解析

Posted on Tue 08 August 2023 in Leetcode • Tagged with Contest

2023-07 Leetcode Weekly Contest 356 第 356 场力扣周赛 | 2798. Number of Employees Who Met the Target 满足目标工作时长的员工数目 | 2799. Count Complete Subarrays in an Array 统计完全子数组的数目 | 2800. Shortest String That Contains Three Strings 包含三个字符串的最短字符串 | 2801. Count Stepping Numbers in Range 统计范围内的步进数字数目 | Solution to contest problems 赛题讲解 | Digit DP 数位DP


Continue reading

Weekly Contest 355 周赛题目解析

Posted on Wed 02 August 2023 in Leetcode • Tagged with Contest

2023-07 Leetcode Weekly Contest 355 第 355 场力扣周赛 | 2788. Split Strings by Separator 按分隔符拆分字符串 | 2789. Largest Element in an Array after Merge Operations 合并后数组中的最大元素 | 2790. Maximum Number of Groups With Increasing Length 长度递增组的最大数目 | 2791. Count Paths That Can Form a Palindrome in a Tree 树中可以形成回文的路径数 | Solution to contest problems 赛题讲解 | Palindome 回文


Continue reading

Weekly Contest 354 周赛题目解析

Posted on Tue 18 July 2023 in Leetcode • Tagged with Contest

2023-07 Leetcode Weekly Contest 354 第 354 场力扣周赛 | 2778. Sum of Squares of Special Elements 特殊元素平方和 | 2779. Maximum Beauty of an Array After Applying Operation 数组的最大美丽值 | 2780. Minimum Index of a Valid Split 合法分割的最小下标 | 2781. Length of the Longest Valid Substring 最长合法子字符串的长度 | Solution to contest problems 赛题讲解 | 字典树 Trie


Continue reading

Weekly Contest 353 周赛题目解析

Posted on Sat 15 July 2023 in Leetcode • Tagged with Contest

2023-07 Leetcode Weekly Contest 353 第 353 场力扣周赛 | 2769. Find the Maximum Achievable Number 找出最大的可达成数字 | 2770. Maximum Number of Jumps to Reach the Last Index 达到末尾下标所需的最大跳跃次数 | 2771. Longest Non-decreasing Subarray From Two Arrays 构造最长非递减子数组 | 2772. Apply Operations to Make All Array Elements Equal to Zero 使数组中的所有元素都等于零 | Solution to contest problems 赛题讲解 | 动态规划 Dynamic Programming | 线段树 Segment Tree | 差分数组 Difference Array


Continue reading

Weekly Contest 352 周赛题目解析

Posted on Thu 13 July 2023 in Leetcode • Tagged with Contest

2023-07 Leetcode Weekly Contest 352 第 352 场力扣周赛 | 2760. Longest Even Odd Subarray With Threshold 最长奇偶子数组 | 2761. Prime Pairs With Target Sum 和等于目标值的质数对 | 2762. Continuous Subarrays 不间断子数组 | 2763. Sum of Imbalance Numbers of All Subarrays 所有子数组中不平衡数字之和 | Solution to contest problems 赛题讲解 | 双指针 Two Pointer


Continue reading