【Leetcode题解】Biweekly Contest 101 双周赛题目解析

Posted on Sun 02 April 2023 in Leetcode • Tagged with Contest

2023-04 Leetcode Biweekly Contest 101 | 2605. Form Smallest Number From Two Digit Arrays 从两个数字数组里生成最小数字 | 2606. Find the Substring With Maximum Cost 找到最大开销的子字符串 | 2607. Make K-Subarray Sums Equal 使子数组元素和相等 | 2608. Shortest Cycle in a Graph 图中的最短环 | My solution 我的题目解析


Continue reading

【Leetcode题解】Weekly Contest 338 周赛题目解析

Posted on Mon 27 March 2023 in Leetcode • Tagged with Contest

2023-03 Leetcode Weekly Contest 338 | 2600. K Items With the Maximum Sum K 件物品的最大和 | 2601. Prime Subtraction Operation 质数减法运算 | 2602. Minimum Operations to Make All Array Elements Equal 使数组元素全部相等的最少操作次数 | 2603. Collect Coins in a Tree 收集树中金币| My solution 我的题目解析


Continue reading

【Leetcode题解】2599. Make the Prefix Sum Non-negative

Posted on Thu 23 March 2023 in Leetcode

Leetcode 2599 Make the Prefix Sum Non-negative My Solution 我的解题思路。这道题主要用贪心算法(greedy)和最小堆(min-heap)结合起来去求解。


Continue reading

【Leetcode题解】Weekly Contest 337 周赛题目解析

Posted on Sun 19 March 2023 in Leetcode • Tagged with Contest

2023-03 Leetcode Weekly Contest 337 | 2595. Number of Even and Odd Bits | 2596. Check Knight Tour Configuration | 2597. The Number of Beautiful Subsets | 2598. Smallest Missing Non-negative Integer After Operations | My solution 我的题目解析


Continue reading

【Leetcode题解】Biweekly Contest 100 双周赛题目解析

Posted on Sat 18 March 2023 in Leetcode • Tagged with Contest

2023-03 Leetcode Biweekly Contest 100 | 2591. Distribute Money to Maximum Children | 2592. Maximize Greatness of an Array | 2593. Find Score of an Array After Marking All Elements | 2594. Minimum Time to Repair Cars | My solution 我的题目解析


Continue reading

手把手教你在树莓派4B上运行LLaMA 7B模型

Posted on Wed 15 March 2023 in Computer Science

本文详细描述了我是如何一步步在树莓派4B上运行LLaMA模型。LLaMA是由Meta AI发布的一个大语言模型。ggerganov/llama.cpp是一个由C++实现的LLaMA移植版本,并使用4-bit量化技术以将模型适配至个人设备上。超大型语料模型从未如此唾手可得。在树莓派上获得你的个人chatgpt。如果你对树莓派、LLaMA模型或大型语言模型感兴趣,那么本文一定会对你有帮助。How I run the LLaMA model step by step on a Raspberry Pi 4B. LLaMA is a large language model released by Meta AI. ggerganov/llama.cpp is a C++ implementation of the LLaMA port, which uses 4-bit quantization techniques to adapt the model to personal devices. A large-scale Machine Learning model has never been so readily available for normal people. If you are interested in Raspberry Pi, LLaMA model, or large-scale language models, this article will provide you with useful information.


Continue reading

【Leetcode题解】2580. Count Ways to Group Overlapping Ranges

Posted on Tue 14 March 2023 in Leetcode • Tagged with Contest, Math

2023-03 - Biweekly Contest 99 - Leetcode 2580 Count Ways to Group Overlapping Ranges - 计算重叠范围的分组方式 - 我的解法,思路和方法


Continue reading

【Leetcode题解】2588. Count the Number of Beautiful Subarrays

Posted on Sun 12 March 2023 in Leetcode • Tagged with Contest, Subarray

2023-03 Weekly Contest 336 Leetcode 2588 Count the Number of Beautiful Subarrays 我的解题思路


Continue reading

【Leetcode题解】2589. Minimum Time to Complete All Tasks

Posted on Sun 12 March 2023 in Leetcode • Tagged with Contest, Scheduling

2023-03 Weekly Contest 336 Leetcode 2589 Minimum Time to Complete All Tasks My Solution 我的解题思路


Continue reading

我是如何做SEO优化的

Posted on Sat 11 March 2023 in MISC

一开始,我的写博客是出于对自己成长的记录,但时间推移后,我希望更多人能够阅读我的文章。虽然与同事和朋友分享文 …


Continue reading