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

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