Daily

2025-12-16

15篇笔记
5-Career 85 字
力扣

力扣 <https://leetcode.com/problems/

5-Career 2209 字
1583. Count Unhappy Friends

1583. Count Unhappy Friends 题目 1583. Count Unhappy Friendshttps://leetcode.com/problems/countunhappyfriends/ !image302da

5-Career 1467 字
1720. Decode XORed Array

1720. Decode XORed Array 📑 目录 题目 1720. Decode XORed Arraytoc17668245768940 思路分析toc17668245768941 代码实现toc17668245768942

5-Career 966 字
1957. Delete Characters to Make Fancy String

1957. Delete Characters to Make Fancy String 题目 1957. Delete Characters to Make Fancy Stringhttps://leetcode.com/problem

5-Career 383 字
3028. Ant on the Boundary

3028. Ant on the Boundary 题目 3028. Ant on the Boundaryhttps://leetcode.com/problems/antontheboundary/ !imagee3b5afb4.png

5-Career 651 字
347. Top K Frequent Elements

347. Top K Frequent Elements 题目 347. Top K Frequent Elementshttps://leetcode.com/problems/topkfrequentelements/ !imageb8

5-Career 410 字
1528. Shuffle String

1528. Shuffle String 题目 1528. Shuffle Stringhttps://leetcode.com/problems/shufflestring/ !imagea443cf96.png 思路分析 !image6

5-Career 1630 字
2384. Largest Palindromic Number

2384. Largest Palindromic Number 题目 2384. Largest Palindromic Numberhttps://leetcode.com/problems/largestpalindromicnumb

5-Career 1928 字
3692. Majority Frequency Characters

3692. Majority Frequency Characters 题目 3692. Majority Frequency Charactershttps://leetcode.com/problems/majorityfrequenc

5-Career 641 字
46. Permutations

46. Permutations 题目 46. Permutationshttps://leetcode.com/problems/permutations/ !image08f244d8.png 思路分析 c++中有全排列函数next_p

5-Career 383 字
461. Hamming Distance

461. Hamming Distance 题目 461. Hamming Distancehttps://leetcode.com/problems/hammingdistance/ !imageaba75c45.png 思路分析 !im

5-Career 3631 字
字符串技巧

字符串技巧 1. 核心铁律:String vs StringBuilder 这是 Java 刷题的第一大坑。 String: 只读。每次修改(拼接、替换)都会创建新对象。 适用场景: 作为 Map 的 Key,作为最终结果返回,不需要修改时

5-Career 4154 字
java算法技巧

java算法技巧 1. 输入输出优化 java import java.io.; import java.util.; public class Main { // 快速读写(比 Scanner 快很多) static BufferedRe

5-Career 1467 字
java中HashMap常用api

java中HashMap常用api 增 / 改 Create / Update API 方法 描述 备注 putkey, value 存入键值对。如果 key 已存在,覆盖旧值。 最常用 putIfAbsentkey, value 只有当

5-Career 2059 字
java中priority_queue常用api

java中priority_queue常用api 常用 API 速查 操作 API 方法 描述 时间复杂度 入队 offerE e 或 addE e 将元素插入堆中,并自动调整位置。 \O\log N\ 出队 poll 获取并移除堆顶元素(