力扣 <https://leetcode.com/problems/
1583. Count Unhappy Friends1583. Count Unhappy Friends 题目 1583. Count Unhappy Friendshttps://leetcode.com/problems/countunhappyfriends/ !image302da
1720. Decode XORed Array1720. Decode XORed Array 📑 目录 题目 1720. Decode XORed Arraytoc17668245768940 思路分析toc17668245768941 代码实现toc17668245768942
1957. Delete Characters to Make Fancy String1957. Delete Characters to Make Fancy String 题目 1957. Delete Characters to Make Fancy Stringhttps://leetcode.com/problem
3028. Ant on the Boundary3028. Ant on the Boundary 题目 3028. Ant on the Boundaryhttps://leetcode.com/problems/antontheboundary/ !imagee3b5afb4.png
347. Top K Frequent Elements347. Top K Frequent Elements 题目 347. Top K Frequent Elementshttps://leetcode.com/problems/topkfrequentelements/ !imageb8
1528. Shuffle String1528. Shuffle String 题目 1528. Shuffle Stringhttps://leetcode.com/problems/shufflestring/ !imagea443cf96.png 思路分析 !image6
2384. Largest Palindromic Number2384. Largest Palindromic Number 题目 2384. Largest Palindromic Numberhttps://leetcode.com/problems/largestpalindromicnumb
3692. Majority Frequency Characters3692. Majority Frequency Characters 题目 3692. Majority Frequency Charactershttps://leetcode.com/problems/majorityfrequenc
46. Permutations46. Permutations 题目 46. Permutationshttps://leetcode.com/problems/permutations/ !image08f244d8.png 思路分析 c++中有全排列函数next_p
461. Hamming Distance461. Hamming Distance 题目 461. Hamming Distancehttps://leetcode.com/problems/hammingdistance/ !imageaba75c45.png 思路分析 !im
字符串技巧字符串技巧 1. 核心铁律:String vs StringBuilder 这是 Java 刷题的第一大坑。 String: 只读。每次修改(拼接、替换)都会创建新对象。 适用场景: 作为 Map 的 Key,作为最终结果返回,不需要修改时
java算法技巧java算法技巧 1. 输入输出优化 java import java.io.; import java.util.; public class Main { // 快速读写(比 Scanner 快很多) static BufferedRe
java中HashMap常用apijava中HashMap常用api 增 / 改 Create / Update API 方法 描述 备注 putkey, value 存入键值对。如果 key 已存在,覆盖旧值。 最常用 putIfAbsentkey, value 只有当
java中priority_queue常用apijava中priority_queue常用api 常用 API 速查 操作 API 方法 描述 时间复杂度 入队 offerE e 或 addE e 将元素插入堆中,并自动调整位置。 \O\log N\ 出队 poll 获取并移除堆顶元素(