入门题
小白菜又菜
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode 3432. Count Partitions with Even Sum Difference
This problem involves counting the number of ways to partition an array such that the difference between the sums of the left and right subarrays is even. The solution iterates through the array, maintaining running sums for both subarrays.原创 2025-12-27 13:22:00 · 225 阅读 · 0 评论 -
Leetcode 1925. Count Square Sum Triples
在给定整数n时,计算满足1 ≤ a,b,c ≤ n的毕达哥拉斯三元组(a,b,c)的数量问题。算法通过枚举所有可能的a和b值,检查是否存在整数c使得a² + b² = c²且c ≤ n。原创 2025-12-27 13:18:55 · 220 阅读 · 0 评论 -
Leetcode 1523. Count Odd Numbers in an Interval Range
This algorithm counts the odd numbers between two given integers (inclusive). It first adjusts the bounds to the nearest odd numbers if they're even, then calculates the count using the formula (high-low)/2 + 1.原创 2025-12-27 13:15:35 · 133 阅读 · 0 评论 -
Leetcode 944. Delete Columns to Make Sorted
摘要 给定一个由等长字符串组成的数组,将其排列成网格形式后,统计需要删除的非字典序排列的列数。算法遍历每一列,检查是否按升序排列,若发现逆序则计数。原创 2025-12-27 13:11:01 · 230 阅读 · 0 评论 -
Leetcode 326. Power of Three
原文链接:https://blog.youkuaiyun.com/mobius_strip/article/details/146445289。原创 2025-04-19 00:31:47 · 348 阅读 · 0 评论 -
Leetcode 318. Maximum Product of Word Lengths
【代码】Leetcode 318. Maximum Product of Word Lengths。原创 2025-04-19 00:25:33 · 424 阅读 · 0 评论 -
Leetcode 237. Delete Node in a Linked List
【代码】Leetcode 237. Delete Node in a Linked List。原创 2025-04-19 00:22:55 · 548 阅读 · 0 评论 -
Leetcode 448. Find All Numbers Disappeared in an Array
【代码】Leetcode 448. Find All Numbers Disappeared in an Array。原创 2024-12-15 17:42:00 · 381 阅读 · 0 评论 -
Leetcode 404. Sum of Left Leaves
【代码】Leetcode 404. Sum of Left Leaves。原创 2024-12-15 17:30:53 · 395 阅读 · 0 评论 -
Leetcode 409. Longest Palindrome
【代码】Leetcode 409. Longest Palindrome。原创 2024-12-15 17:34:20 · 400 阅读 · 0 评论 -
Leetcode 500. Keyboard Row
【代码】Leetcode 500. Keyboard Row。原创 2024-11-23 18:25:02 · 554 阅读 · 0 评论 -
Leetcode 485. Max Consecutive Ones
【代码】Leetcode 485. Max Consecutive Ones。原创 2024-11-23 18:19:54 · 331 阅读 · 0 评论 -
Leetcode 412. Fizz Buzz
【代码】Leetcode 412. Fizz Buzz。原创 2024-11-23 18:16:46 · 390 阅读 · 0 评论 -
Leetcode 405. Convert a Number to Hexadecimal
【代码】Leetcode 405. Convert a Number to Hexadecimal。原创 2024-11-23 18:14:31 · 394 阅读 · 0 评论 -
Leetcode 441. Arranging Coins
【代码】Leetcode 441. Arranging Coins。原创 2024-10-13 00:59:04 · 667 阅读 · 1 评论 -
Leetcode 434. Number of Segments in a String
【代码】Leetcode 434. Number of Segments in a String。原创 2024-10-13 00:54:48 · 472 阅读 · 0 评论 -
Leetcode 415. Add Strings
【代码】Leetcode 415. Add Strings。原创 2024-10-13 00:49:03 · 369 阅读 · 0 评论 -
Leetcode 401. Binary Watch
【代码】Leetcode 401. Binary Watch。原创 2024-10-13 00:45:51 · 425 阅读 · 0 评论 -
Leetcode 1207. Unique Number of Occurrences
【代码】Leetcode 1207. Unique Number of Occurrences。原创 2024-09-01 11:38:54 · 364 阅读 · 0 评论 -
Leetcode 933. Number of Recent Calls
【代码】Leetcode 933. Number of Recent Calls。原创 2024-09-01 11:35:35 · 492 阅读 · 0 评论 -
Leetcode 700. Search in a Binary Search Tree
【代码】Leetcode 700. Search in a Binary Search Tree。原创 2024-09-01 11:32:18 · 427 阅读 · 0 评论 -
Leetcode 283. Move Zeroes
【代码】Leetcode 283. Move Zeroes。原创 2024-09-01 11:29:54 · 344 阅读 · 0 评论 -
Leetcode 476. Number Complement
【代码】Leetcode 476. Number Complement。原创 2024-08-22 20:56:05 · 411 阅读 · 0 评论 -
Leetcode 392. Is Subsequence
【代码】Leetcode 392. Is Subsequence。原创 2024-08-22 20:49:55 · 281 阅读 · 0 评论 -
Leetcode 1431. Kids With the Greatest Number of Candies
【代码】Leetcode 1431. Kids With the Greatest Number of Candies。原创 2024-04-22 14:04:25 · 591 阅读 · 0 评论 -
Leetcode 605. Can Place Flowers
【代码】Leetcode 605. Can Place Flowers。原创 2024-04-22 13:57:10 · 323 阅读 · 0 评论 -
Leetcode 389. Find the Difference
【代码】Leetcode 389. Find the Difference。原创 2024-03-18 09:56:48 · 358 阅读 · 0 评论 -
Leetcode 387. First Unique Character in a String
【代码】Leetcode 387. First Unique Character in a String。原创 2024-03-18 09:51:10 · 552 阅读 · 0 评论 -
Leetcode 383. Ransom Note
【代码】Leetcode 383. Ransom Note。原创 2024-03-18 09:48:15 · 409 阅读 · 0 评论 -
Leetcode 1732. Find the Highest Altitude
【代码】Leetcode 1732. Find the Highest Altitude。原创 2024-01-03 19:40:38 · 649 阅读 · 1 评论 -
Leetcode 724. Find Pivot Index
【代码】Leetcode 724. Find Pivot Index。原创 2024-01-03 19:33:05 · 637 阅读 · 0 评论 -
Leetcode 643. Maximum Average Subarray I
【代码】Leetcode 643. Maximum Average Subarray I。原创 2024-01-03 19:30:38 · 523 阅读 · 0 评论 -
Leetcode 1071. Greatest Common Divisor of Strings
【代码】Leetcode 1071. Greatest Common Divisor of Strings。原创 2024-01-03 19:37:10 · 698 阅读 · 0 评论 -
Leetcode 292. Nim Game
【代码】Leetcode 292. Nim Game。原创 2023-10-10 22:04:07 · 422 阅读 · 0 评论 -
Leetcode 289. Game of Life
【代码】Leetcode 289. Game of Life。原创 2023-10-10 21:56:40 · 328 阅读 · 0 评论 -
Leetcode 283. Move Zeroes
【代码】Leetcode 283. Move Zeroes。原创 2023-10-09 22:13:31 · 176 阅读 · 0 评论 -
Leetcode 263. Ugly Number
【代码】Leetcode 263. Ugly Number。原创 2023-08-03 20:52:37 · 500 阅读 · 0 评论 -
Leetcode 1768. Merge Strings Alternately
【代码】Leetcode 1768. Merge Strings Alternately。原创 2023-08-03 21:01:23 · 405 阅读 · 0 评论 -
Leetcode 264. Ugly Number II
【代码】Leetcode 264. Ugly Number II。原创 2023-08-03 20:54:36 · 333 阅读 · 0 评论 -
Leetcode 268. Missing Number
【代码】Leetcode 268. Missing Number。原创 2023-08-03 20:57:30 · 490 阅读 · 0 评论
分享