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

Weekly Contest 351 周赛题目解析

Posted on Sun 25 June 2023 in Leetcode • Tagged with Contest

2023-06 Leetcode Weekly Contest 351 第 351 场力扣周赛 | 2748. Number of Beautiful Pairs 美丽下标对的数目 | 2749. Minimum Operations to Make the Integer Zero 得到整数零需要执行的最少操作数 | 2750. Ways to Split Array Into Good Subarrays 将数组划分成若干好子数组的方式 | 2751. Robot Collisions 机器人碰撞 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 350 周赛题目解析

Posted on Sun 18 June 2023 in Leetcode • Tagged with Contest

2023-06 Leetcode Weekly Contest 350 第 350 场力扣周赛 | 2739. Total Distance Traveled 总行驶距离 | 2740. Find the Value of the Partition 找出分区值 | 2741. Special Permutations 特别的排列 | 2742. Painting the Walls 给墙壁刷油漆 | Solution to contest problems 赛题讲解 | Weighted Graph 有权图


Continue reading

327. Count of Range Sum 区间和的个数

Posted on Sat 10 June 2023 in Leetcode

Leetcode Medium 327. Count of Range Sum 区间和的个数 | Binary Search 二分搜索 | Divide and Conquer 分治算法 | Merge Sort 归并排序


Continue reading

Weekly Contest 346 周赛题目解析

Posted on Sun 21 May 2023 in Leetcode • Tagged with Contest

2023-05 Leetcode Weekly Contest 346 第 346 场力扣周赛 | 2696. Minimum String Length After Removing Substrings 删除子串后的字符串最小长度 | 2697. Lexicographically Smallest Palindrome 字典序最小回文串 | 2698. Find the Punishment Number of an Integer 求一个整数的惩罚数 | 2699. Modify Graph Edge Weights 修改图中的边权 | Solution to contest problems 赛题讲解 | Weighted Graph 有权图


Continue reading

Weekly Contest 345 周赛题目解析

Posted on Thu 18 May 2023 in Leetcode • Tagged with Contest

2023-05 Leetcode Weekly Contest 345 第 345 场力扣周赛 | 2682. Find the Losers of the Circular Game 找出转圈游戏输家 | 2683. Neighboring Bitwise XOR 相邻值的按位异或 | 2684. Maximum Number of Moves in a Grid 矩阵中移动的最大次数 | 2685. Count the Number of Complete Components 统计完全连通分量的数量 | Solution to contest problems 赛题讲解 | 异或 XOR |


Continue reading

Weekly Contest 344 周赛题目解析

Posted on Mon 08 May 2023 in Leetcode • Tagged with Contest

2023-05 Leetcode Weekly Contest 344 第 344 场力扣周赛 | 2670. Find the Distinct Difference Array 找出不同元素数目差数组 | 2671. Frequency Tracker 频率跟踪器 | 2672. Number of Adjacent Elements With the Same Color 有相同颜色的相邻元素数目 | 2663. Lexicographically Smallest Beautiful String 字典序最小的美丽字符串 | Solution to contest problems 赛题讲解 | Dijkstra's Algorithm 狄克斯特拉算法 | Lexicographic order 字典序


Continue reading