Weekly Contest 382 周赛题目解析

Posted on Tue 06 February 2024 in Leetcode • Tagged with Contest

2024-01 Leetcode Weekly Contest 382 第 382 场力扣周赛 | 3019. Number of Changing Keys 按键变更的次数 | 3020. Find the Maximum Number of Elements in Subset 子集中元素的最大数量 | 3021. Alice and Bob Playing Flower Game Alice 和 Bob 玩鲜花游戏 | 3022. Minimize OR of Remaining Elements Using Operations 给定操作次数内使剩余元素的或值最小 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 381 周赛题目解析

Posted on Wed 31 January 2024 in Leetcode • Tagged with Contest

2024-01 Leetcode Weekly Contest 381 第 381 场力扣周赛 | 3014. Minimum Number of Pushes to Type Word I 输入单词需要的最少按键次数 I | 3015. Count the Number of Houses at a Certain Distance I 按距离统计房屋对数目 I | 3016. Minimum Number of Pushes to Type Word II 输入单词需要的最少按键次数 II | 3017. Count the Number of Houses at a Certain Distance II 按距离统计房屋对数目 II | Solution to contest problems 赛题讲解


Continue reading

摄影札记:我的数码胶片相机 Sony A7R与美能达 MC Rokkor 58mm F1.2

Posted on Sat 20 January 2024 in Photography

在2023年的年末,笔者购买了一台Sony A7R,并搭配了传奇的美能达 MC Rokkor-PG 58mm F1.2镜头。这篇文章讲述了笔者购买一台10年前的数码相机搭配这个50年前的镜头的原因,和对于摄影的一些思考。笔者称这套组合为数码胶片相机。


Continue reading

Weekly Contest 371 周赛题目解析

Posted on Mon 13 November 2023 in Leetcode • Tagged with Contest

2023-11 Leetcode Weekly Contest 371 第 371 场力扣周赛 | 2932. Maximum Strong Pair XOR I 找出强数对的最大异或值 I | 2933. High-Access Employees 高访问员工 | 2934. Minimum Operations to Maximize Last Elements in Arrays 最大化数组末位元素的最少操作次数 | 2935. Maximum Strong Pair XOR II 找出强数对的最大异或值 II | Solution to contest problems 赛题讲解 | Trie 前缀树 | Greedy 贪心算法


Continue reading

Weekly Contest 367 周赛题目解析

Posted on Sun 15 October 2023 in Leetcode • Tagged with Contest

2023-10 Leetcode Weekly Contest 367 第 367 场力扣周赛 | 2903. Find Indices With Index and Value Difference I 找出满足差值条件的下标 I | 2904. Shortest and Lexicographically Smallest Beautiful String 最短且字典序最小的美丽子字符串 | 2905. Find Indices With Index and Value Difference II 找出满足差值条件的下标 II | 2906. Construct Product Matrix 构造乘积矩阵 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 366 周赛题目解析

Posted on Mon 09 October 2023 in Leetcode • Tagged with Contest

2023-10 Leetcode Weekly Contest 366 第 366 场力扣周赛 | 2894. Divisible and Non-divisible Sums Difference 分类求和并作差 | 2895. Minimum Processing Time 最小处理时间 | 2896. Apply Operations to Make Two Strings Equal 执行操作使两个字符串相等 | 2897. Apply Operations on Array to Maximize Sum of Squares 对数组执行操作使平方和最大 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 365 周赛题目解析

Posted on Thu 05 October 2023 in Leetcode • Tagged with Contest

2023-10 Leetcode Weekly Contest 365 第 365 场力扣周赛 | 2873. Maximum Value of an Ordered Triplet I 有序三元组中的最大值 I | 2874. Maximum Value of an Ordered Triplet II 有序三元组中的最大值 II | 2875. Minimum Size Subarray in Infinite Array 无限数组的最短子数组 | 2876. Count Visited Nodes in a Directed Graph 有向图访问计数 | Solution to contest problems 赛题讲解


Continue reading

Weekly Contest 364 周赛题目解析

Posted on Sun 01 October 2023 in Leetcode • Tagged with Contest

2023-09 Leetcode Weekly Contest 364 第 364 场力扣周赛 | 2864. Maximum Odd Binary Number 最大二进制奇数 | 2865. Beautiful Towers I 美丽塔 I | 2866. Beautiful Towers II 美丽塔 II | 2867. Count Valid Paths in a Tree 统计树中的合法路径数目 | Solution to contest problems 赛题讲解


Continue reading

解决Foobar挑战(四)- 终篇

Posted on Sat 30 September 2023 in Computer Science • Tagged with Google Foobar

接上回书,我们来到了Foobar挑战的第五层,题目越来越困难了。本题主要涉及一些数论和组合数学的知识点。


Continue reading

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