数组 标签
数组
共 413 篇内容。
- 1. Two Sum 两数之和
- 4. Median of Two Sorted Arrays 寻找两个正序数组的中位数
- 11. Container With Most Water 盛最多水的容器
- 15. 3Sum 三数之和
- 16. 3Sum Closest 最接近的三数之和
- 18. 4Sum 四数之和
- 26. Remove Duplicates from Sorted Array 删除有序数组中的重复项
- 27. Remove Element 移除元素
- 31. Next Permutation 下一个排列
- 33. Search in Rotated Sorted Array 搜索旋转排序数组
- 34. Find First and Last Position of Element in Sorted Array 在排序数组中查找元素的第一个和最后一个位置
- 35. Search Insert Position 搜索插入位置
- 36. Valid Sudoku 有效的数独
- 39. Combination Sum 组合总和
- 40. Combination Sum II 组合总和 II
- 42. Trapping Rain Water 接雨水
- 45. Jump Game II 跳跃游戏 II
- 46. Permutations 全排列
- 47. Permutations II 全排列 II
- 48. Rotate Image 旋转图像
- 49. Group Anagrams 字母异位词分组
- 51. N-Queens N 皇后
- 53. Maximum Subarray 最大子数组和
- 54. Spiral Matrix 螺旋矩阵
- 55. Jump Game 跳跃游戏
- 56. Merge Intervals 合并区间
- 59. Spiral Matrix II 螺旋矩阵 II
- 63. Unique Paths II 不同路径 II
- 64. Minimum Path Sum 最小路径和
- 66. Plus One 加一
- 73. Set Matrix Zeroes 矩阵置零
- 74. Search a 2D Matrix 搜索二维矩阵
- 75. Sort Colors 颜色分类
- 78. Subsets 子集
- 79. Word Search 单词搜索
- 80. Remove Duplicates from Sorted Array II 删除有序数组中的重复项 II
- 81. Search in Rotated Sorted Array II 搜索旋转排序数组 II
- 84. Largest Rectangle in Histogram 柱状图中最大的矩形
- 85. Maximal Rectangle 最大矩形
- 88. Merge Sorted Array 合并两个有序数组
- 90. Subsets II 子集 II
- 105. Construct Binary Tree from Preorder and Inorder Traversal 从前序与中序遍历序列构造二叉树
- 106. Construct Binary Tree from Inorder and Postorder Traversal 从中序与后序遍历序列构造二叉树
- 108. Convert Sorted Array to Binary Search Tree 将有序数组转换为二叉搜索树
- 118. Pascal's Triangle 杨辉三角
- 119. Pascal's Triangle II 杨辉三角 II
- 120. Triangle 三角形最小路径和
- 121. Best Time to Buy and Sell Stock 买卖股票的最佳时机
- 122. Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II
- 123. Best Time to Buy and Sell Stock III 买卖股票的最佳时机 III
- 136. Single Number 只出现一次的数字
- 137. Single Number II 只出现一次的数字 II
- 149. Max Points on a Line 直线上最多的点数
- 150. Evaluate Reverse Polish Notation 逆波兰表达式求值
- 152. Maximum Product Subarray 乘积最大子数组
- 153. Find Minimum in Rotated Sorted Array 寻找旋转排序数组中的最小值
- 154. Find Minimum in Rotated Sorted Array II 寻找旋转排序数组中的最小值 II
- 162. Find Peak Element 寻找峰值
- 163. Missing Ranges 缺失的区间
- 167. Two Sum II - Input Array Is Sorted 两数之和 II - 输入有序数组
- 169. Majority Element 多数元素
- 170. Two Sum III - Data structure design 两数之和 III - 数据结构设计
- 174. Dungeon Game 地下城游戏
- 188. Best Time to Buy and Sell Stock IV 买卖股票的最佳时机 IV
- 189. Rotate Array 轮转数组
- 198. House Robber 打家劫舍
- 200. Number of Islands 岛屿数量
- 204. Count Primes 计数质数
- 209. Minimum Size Subarray Sum 长度最小的子数组
- 212. Word Search II 单词搜索 II
- 213. House Robber II 打家劫舍 II
- 215. Kth Largest Element in an Array 数组中的第K个最大元素
- 216. Combination Sum III 组合总和 III
- 217. Contains Duplicate 存在重复元素
- 219. Contains Duplicate II 存在重复元素 II
- 221. Maximal Square 最大正方形
- 228. Summary Ranges 汇总区间
- 229. Majority Element II 多数元素 II
- 238. Product of Array Except Self 除自身以外数组的乘积
- 239. Sliding Window Maximum 滑动窗口最大值
- 240. Search a 2D Matrix II 搜索二维矩阵 II
- 243. Shortest Word Distance 最短单词距离
- 244. Shortest Word Distance II 最短单词距离 II
- 245. Shortest Word Distance III 最短单词距离 III
- 252. Meeting Rooms 会议室
- 253. Meeting Rooms II 会议室 II
- 256. Paint House 粉刷房子
- 259. 3Sum Smaller 较小的三数之和
- 260. Single Number III 只出现一次的数字 III
- 268. Missing Number 丢失的数字
- 274. H-Index H 指数
- 275. H-Index II H 指数 II
- 280. Wiggle Sort 摆动排序
- 281. Zigzag Iterator 锯齿迭代器
- 283. Move Zeroes 移动零
- 284. Peeking Iterator 顶端迭代器
- 286. Walls and Gates 墙与门
- 287. Find the Duplicate Number 寻找重复数
- 289. Game of Life 生命游戏
- 300. Longest Increasing Subsequence 最长递增子序列
- 303. Range Sum Query - Immutable 区域和检索 - 数组不可变
- 304. Range Sum Query 2D - Immutable 二维区域和检索 - 矩阵不可变
- 309. Best Time to Buy and Sell Stock with Cooldown 最佳买卖股票时机含冷冻期
- 311. Sparse Matrix Multiplication 稀疏矩阵的乘法
- 312. Burst Balloons 戳气球
- 318. Maximum Product of Word Lengths 最大单词长度乘积
- 322. Coin Change 零钱兑换
- 325. Maximum Size Subarray Sum Equals k 和等于 k 的最长子数组长度
- 329. Longest Increasing Path in a Matrix 矩阵中的最长递增路径
- 334. Increasing Triplet Subsequence 递增的三元子序列
- 336. Palindrome Pairs 回文对
- 346. Moving Average from Data Stream 数据流中的移动平均值
- 347. Top K Frequent Elements 前 K 个高频元素
- 349. Intersection of Two Arrays 两个数组的交集
- 350. Intersection of Two Arrays II 两个数组的交集 II
- 361. Bomb Enemy 轰炸敌人
- 362. Design Hit Counter 敲击计数器
- 363. Max Sum of Rectangle No Larger Than K 矩形区域不超过 K 的最大数值和
- 368. Largest Divisible Subset 最大整除子集
- 370. Range Addition 区间加法
- 373. Find K Pairs with Smallest Sums 查找和最小的 K 对数字
- 376. Wiggle Subsequence 摆动序列
- 377. Combination Sum IV 组合总和 Ⅳ
- 378. Kth Smallest Element in a Sorted Matrix 有序矩阵中第 K 小的元素
- 379. Design Phone Directory 电话目录管理系统
- 380. Insert Delete GetRandom O(1) O(1) 时间插入、删除和获取随机元素
- 384. Shuffle an Array 打乱数组
- 393. UTF-8 Validation UTF-8 编码验证
- 396. Rotate Function 旋转函数
- 399. Evaluate Division 除法求值
- 406. Queue Reconstruction by Height 根据身高重建队列
- 413. Arithmetic Slices 等差数列划分
- 414. Third Maximum Number 第三大的数
- 416. Partition Equal Subset Sum 分割等和子集
- 417. Pacific Atlantic Water Flow 太平洋大西洋水流问题
- 419. Battleships in a Board 甲板上的战舰
- 421. Maximum XOR of Two Numbers in an Array 数组中两个数的最大异或值
- 422. Valid Word Square 有效的单词方块
- 427. Construct Quad Tree 建立四叉树
- 435. Non-overlapping Intervals 无重叠区间
- 436. Find Right Interval 寻找右区间
- 442. Find All Duplicates in an Array 数组中重复的数据
- 447. Number of Boomerangs 回旋镖的数量
- 448. Find All Numbers Disappeared in an Array 找到所有数组中消失的数字
- 452. Minimum Number of Arrows to Burst Balloons 用最少数量的箭引爆气球
- 453. Minimum Moves to Equal Array Elements 最小操作次数使数组元素相等
- 454. 4Sum II 四数相加 II
- 455. Assign Cookies 分发饼干
- 456. 132 Pattern 132 模式
- 457. Circular Array Loop 环形数组是否存在循环
- 462. Minimum Moves to Equal Array Elements II 最少移动次数使数组元素相等 II
- 463. Island Perimeter 岛屿的周长
- 472. Concatenated Words 连接词
- 473. Matchsticks to Square 火柴拼正方形
- 474. Ones and Zeroes 一和零
- 475. Heaters 供暖器
- 477. Total Hamming Distance 汉明距离总和
- 480. Sliding Window Median 滑动窗口中位数
- 485. Max Consecutive Ones 最大连续 1 的个数
- 486. Predict the Winner 预测赢家
- 487. Max Consecutive Ones II 最大连续1的个数 II
- 491. Increasing Subsequences 递增子序列
- 494. Target Sum 目标和
- 495. Teemo Attacking 提莫攻击
- 496. Next Greater Element I 下一个更大元素 I
- 498. Diagonal Traverse 对角线遍历
- 500. Keyboard Row 键盘行
- 503. Next Greater Element II 下一个更大元素 II
- 506. Relative Ranks 相对名次
- 518. Coin Change 2 零钱兑换 II
- 522. Longest Uncommon Subsequence II 最长特殊序列 II
- 525. Contiguous Array 连续数组
- 526. Beautiful Arrangement 优美的排列
- 529. Minesweeper 扫雷游戏
- 532. K-diff Pairs in an Array 数组中的 k-diff 数对
- 539. Minimum Time Difference 最小时间差
- 540. Single Element in a Sorted Array 有序数组中的单一元素
- 548. Split Array with Equal Sum 将数组分割成和相等的子数组
- 553. Optimal Division 最优除法
- 554. Brick Wall 砖墙
- 555. Split Concatenated Strings 分割连接字符串
- 560. Subarray Sum Equals K 和为 K 的子数组
- 561. Array Partition 数组拆分
- 565. Array Nesting 数组嵌套
- 566. Reshape the Matrix 重塑矩阵
- 575. Distribute Candies 分糖果
- 581. Shortest Unsorted Continuous Subarray 最短无序连续子数组
- 594. Longest Harmonious Subsequence 最长和谐子序列
- 598. Range Addition II 范围求和 II
- 599. Minimum Index Sum of Two Lists 两个列表的最小索引总和
- 604. Design Compressed String Iterator 迭代压缩字符串
- 605. Can Place Flowers 种花问题
- 609. Find Duplicate File in System 在系统中查找重复文件
- 611. Valid Triangle Number 有效三角形的个数
- 616. Add Bold Tag in String 给字符串添加加粗标签
- 621. Task Scheduler 任务调度器
- 622. Design Circular Queue 设计循环队列
- 624. Maximum Distance in Arrays 数组列表中的最大距离
- 628. Maximum Product of Three Numbers 三个数的最大乘积
- 632. Smallest Range Covering Elements from K Lists 最小区间
- 636. Exclusive Time of Functions 函数的独占时间
- 638. Shopping Offers 大礼包
- 641. Design Circular Deque 设计循环双端队列
- 643. Maximum Average Subarray I 子数组最大平均数 I
- 645. Set Mismatch 错误的集合
- 646. Maximum Length of Pair Chain 最长数对链
- 648. Replace Words 单词替换
- 654. Maximum Binary Tree 最大二叉树
- 658. Find K Closest Elements 找到 K 个最接近的元素
- 659. Split Array into Consecutive Subsequences 分割数组为连续子序列
- 661. Image Smoother 图片平滑器
- 665. Non-decreasing Array 非递减数列
- 666. Path Sum IV 路径总和 IV
- 667. Beautiful Arrangement II 优美的排列 II
- 673. Number of Longest Increasing Subsequence 最长递增子序列的个数
- 674. Longest Continuous Increasing Subsequence 最长连续递增序列
- 682. Baseball Game 棒球比赛
- 689. Maximum Sum of 3 Non-Overlapping Subarrays 三个无重叠子数组的最大和
- 695. Max Area of Island 岛屿的最大面积
- 697. Degree of an Array 数组的度
- 698. Partition to K Equal Sum Subsets 划分为k个相等的子集
- 702. Search in a Sorted Array of Unknown Size 搜索长度未知的有序数组
- 704. Binary Search 二分查找
- 705. Design HashSet 设计哈希集合
- 706. Design HashMap 设计哈希映射
- 713. Subarray Product Less Than K 乘积小于 K 的子数组
- 714. Best Time to Buy and Sell Stock with Transaction Fee 买卖股票的最佳时机含手续费
- 717. 1-bit and 2-bit Characters 1 比特与 2 比特字符
- 718. Maximum Length of Repeated Subarray 最长重复子数组
- 720. Longest Word in Dictionary 词典中最长的单词
- 721. Accounts Merge 账户合并
- 722. Remove Comments 删除注释
- 723. Candy Crush 粉碎糖果
- 724. Find Pivot Index 寻找数组的中心下标
- 733. Flood Fill 图像渲染
- 734. Sentence Similarity 句子相似性
- 735. Asteroid Collision 行星碰撞
- 739. Daily Temperatures 每日温度
- 744. Find Smallest Letter Greater Than Target 寻找比目标字母大的最小字母
- 746. Min Cost Climbing Stairs 使用最小花费爬楼梯
- 747. Largest Number At Least Twice of Others 至少是其他数字两倍的最大数
- 748. Shortest Completing Word 最短补全词
- 750. Number Of Corner Rectangles 角矩形的数量
- 752. Open the Lock 打开转盘锁
- 758. Bold Words in String 字符串中的加粗单词
- 760. Find Anagram Mappings 找出变位映射
- 764. Largest Plus Sign 最大加号标志
- 766. Toeplitz Matrix 托普利茨矩阵
- 768. Max Chunks To Make Sorted II 最多能完成排序的块 II
- 769. Max Chunks To Make Sorted 最多能完成排序的块
- 773. Sliding Puzzle 滑动谜题
- 775. Global and Local Inversions 全局倒置与局部倒置
- 778. Swim in Rising Water 水位上升的泳池中游泳
- 781. Rabbits in Forest 森林中的兔子
- 789. Escape The Ghosts 逃脱阻碍者
- 794. Valid Tic-Tac-Toe State 有效的井字游戏
- 795. Number of Subarrays with Bounded Maximum 区间子数组个数
- 801. Minimum Swaps To Make Sequences Increasing 使序列递增的最小交换次数
- 804. Unique Morse Code Words 唯一摩尔斯密码词
- 806. Number of Lines To Write String 写字符串需要的行数
- 807. Max Increase to Keep City Skyline 保持城市天际线
- 809. Expressive Words 情感丰富的文字
- 811. Subdomain Visit Count 子域名访问计数
- 812. Largest Triangle Area 最大三角形面积
- 813. Largest Sum of Averages 最大平均值和的分组
- 820. Short Encoding of Words 单词的压缩编码
- 821. Shortest Distance to a Character 字符的最短距离
- 822. Card Flipping Game 翻转卡片游戏
- 823. Binary Trees With Factors 带因子的二叉树
- 825. Friends Of Appropriate Ages 适龄的朋友
- 826. Most Profit Assigning Work 安排工作以达到最大收益
- 832. Flipping an Image 翻转图像
- 833. Find And Replace in String 字符串中的查找与替换
- 835. Image Overlap 图像重叠
- 839. Similar String Groups 相似字符串组
- 840. Magic Squares In Grid 矩阵中的幻方
- 845. Longest Mountain in Array 数组中的最长山脉
- 846. Hand of Straights 一手顺子
- 848. Shifting Letters 字母移位
- 849. Maximize Distance to Closest Person 到最近的人的最大距离
- 851. Loud and Rich 喧闹和富有
- 852. Peak Index in a Mountain Array 山脉数组的峰顶索引
- 853. Car Fleet 车队
- 857. Minimum Cost to Hire K Workers 雇佣 K 名工人的最低成本
- 860. Lemonade Change 柠檬水找零
- 861. Score After Flipping Matrix 翻转矩阵后的得分
- 862. Shortest Subarray with Sum at Least K 和至少为 K 的最短子数组
- 867. Transpose Matrix 转置矩阵
- 870. Advantage Shuffle 优势洗牌
- 871. Minimum Number of Refueling Stops 最低加油次数
- 873. Length of Longest Fibonacci Subsequence 最长的斐波那契子序列的长度
- 874. Walking Robot Simulation 模拟行走机器人
- 875. Koko Eating Bananas 爱吃香蕉的珂珂
- 877. Stone Game 石子游戏
- 881. Boats to Save People 救生艇
- 883. Projection Area of 3D Shapes 三维形体投影面积
- 885. Spiral Matrix III 螺旋矩阵 III
- 888. Fair Candy Swap 公平的糖果交换
- 889. Construct Binary Tree from Preorder and Postorder Traversal 根据前序和后序遍历构造二叉树
- 890. Find and Replace Pattern 查找和替换模式
- 892. Surface Area of 3D Shapes 三维形体的表面积
- 893. Groups of Special-Equivalent Strings 特殊等价字符串组
- 896. Monotonic Array 单调数列
- 898. Bitwise ORs of Subarrays 子数组按位或操作
- 900. RLE Iterator RLE 迭代器
- 904. Fruit Into Baskets 水果成篮
- 905. Sort Array By Parity 按奇偶排序数组
- 908. Smallest Range I 最小差值 I
- 910. Smallest Range II 最小差值 II
- 911. Online Election 在线选举
- 912. Sort an Array 排序数组
- 914. X of a Kind in a Deck of Cards 卡牌分组
- 915. Partition Array into Disjoint Intervals 分割数组
- 916. Word Subsets 单词子集
- 922. Sort Array By Parity II 按奇偶排序数组 II
- 923. 3Sum With Multiplicity 三数之和的多种可能
- 929. Unique Email Addresses 独特的电子邮件地址
- 930. Binary Subarrays With Sum 和相同的二元子数组
- 931. Minimum Falling Path Sum 下降路径最小和
- 932. Beautiful Array 漂亮数组
- 934. Shortest Bridge 最短的桥
- 937. Reorder Data in Log Files 重新排列日志文件
- 939. Minimum Area Rectangle 最小面积矩形
- 941. Valid Mountain Array 有效的山脉数组
- 942. DI String Match 增减字符串匹配
- 944. Delete Columns to Make Sorted 删列造序
- 945. Minimum Increment to Make Array Unique 使数组唯一的最小增量
- 946. Validate Stack Sequences 验证栈序列
- 948. Bag of Tokens 令牌放置
- 950. Reveal Cards In Increasing Order 按递增顺序显示卡牌
- 952. Largest Component Size by Common Factor 按公因数计算最大组件大小
- 953. Verifying an Alien Dictionary 验证外星语词典
- 954. Array of Doubled Pairs 二倍数对数组
- 957. Prison Cells After N Days N 天后的牢房
- 961. N-Repeated Element in Size 2N Array 在长度 2N 的数组中找出重复 N 次的元素
- 962. Maximum Width Ramp 最大宽度坡
- 963. Minimum Area Rectangle II 最小面积矩形 II
- 966. Vowel Spellchecker 元音拼写检查器
- 969. Pancake Sorting 煎饼排序
- 973. K Closest Points to Origin 最接近原点的 K 个点
- 974. Subarray Sums Divisible by K 和可被 K 整除的子数组
- 975. Odd Even Jump 奇偶跳
- 976. Largest Perimeter Triangle 三角形的最大周长
- 977. Squares of a Sorted Array 有序数组的平方
- 978. Longest Turbulent Subarray 最长湍流子数组
- 980. Unique Paths III 不同路径 III
- 982. Triples with Bitwise AND Equal To Zero 按位与为零的三元组
- 983. Minimum Cost For Tickets 最低票价
- 985. Sum of Even Numbers After Queries 查询后的偶数和
- 986. Interval List Intersections 区间列表的交集
- 989. Add to Array-Form of Integer 数组形式的整数加法
- 990. Satisfiability of Equality Equations 等式方程的可满足性
- 994. Rotting Oranges 腐烂的橘子
- 996. Number of Squareful Arrays 正方形数组的数目
- 997. Find the Town Judge 找到小镇的法官
- 999. Available Captures for Rook 可以被一步捕获的棋子数
- 1001. Grid Illumination 网格照明
- 1002. Find Common Characters 查找共用字符
- 1004. Max Consecutive Ones III 最大连续1的个数 III
- 1005. Maximize Sum Of Array After K Negations K 次取反后最大化的数组和
- 1007. Minimum Domino Rotations For Equal Row 行相等的最少多米诺旋转
- 1008. Construct Binary Search Tree from Preorder Traversal 前序遍历构造二叉搜索树
- 1013. Partition Array Into Three Parts With Equal Sum 将数组分成和相等的三个部分
- 1014. Best Sightseeing Pair 最佳观光组合
- 1018. Binary Prefix Divisible By 5 可被 5 整除的二进制前缀
- 1019. Next Greater Node In Linked List 链表中的下一个更大节点
- 1020. Number of Enclaves 飞地的数量
- 1024. Video Stitching 视频拼接
- 1029. Two City Scheduling 两地调度
- 1030. Matrix Cells in Distance Order 距离顺序排列矩阵单元格
- 1037. Valid Boomerang 有效的回旋镖
- 1046. Last Stone Weight 最后一块石头的重量
- 1051. Height Checker 高度检查器
- 1060. Missing Element in Sorted Array 有序数组中的缺失元素
- 1064. Fixed Point 不动点
- 1065. Index Pairs of a String 字符串的索引对
- 1085. Sum of Digits in the Minimum Number 最小元素各数位之和
- 1086. High Five 前五科的均分
- 1094. Car Pooling 拼车
- 1095. Find in Mountain Array 山脉数组中查找目标值
- 1099. Two Sum Less Than K 小于 K 的两数之和
- 1101. The Earliest Moment When Everyone Become Friends 彼此熟识的最早时间
- 1102. Path With Maximum Minimum Value 得分最高的路径
- 1128. Number of Equivalent Domino Pairs 等价多米诺骨牌对的数量
- 1133. Largest Unique Number 最大唯一数
- 1150. Check If a Number Is Majority Element in a Sorted Array 检查一个数是否在数组中占绝大多数
- 1151. Minimum Swaps to Group All 1's Together 最少交换次数来组合所有的 1
- 1160. Find Words That Can Be Formed by Characters 拼写单词
- 1162. As Far from Land as Possible 地图分析
- 1167. Minimum Cost to Connect Sticks 连接棒材的最低费用
- 1170. Compare Strings by Frequency of the Smallest Character 比较字符串最小字母出现频次
- 1181. Before and After Puzzle 前后拼接
- 1182. Shortest Distance to Target Color 与目标颜色间的最短距离
- 1200. Minimum Absolute Difference 最小绝对差
- 1222. Queens That Can Attack the King 可以攻击国王的皇后
- 1402. Reducing Dishes 做菜顺序
- 1403. Minimum Subsequence in Non-Increasing Order 非递增顺序的最小子序列
- 1409. Queries on a Permutation With Key 查询带键的排列
- 1413. Minimum Value to Get Positive Step by Step Sum 逐步求和得到正数的最小值
- 1418. Display Table of Food Orders in a Restaurant 点菜展示表
- 1423. Maximum Points You Can Obtain from Cards 可获得的最大点数
- 1431. Kids With the Greatest Number of Candies 拥有最多糖果的孩子
- 1437. Check If All 1's Are at Least Length K Places Away 是否所有 1 都至少相隔 k 个元素
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit 绝对差不超过限制的最长连续子数组
- 1460. Make Two Arrays Equal by Reversing Sub-arrays 通过翻转子数组使两个数组相等
- 1464. Maximum Product of Two Elements in an Array 数组中两元素的最大乘积
- 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts 切割后面积最大的蛋糕
- 1470. Shuffle the Array 重新排列数组
- 1471. The k Strongest Values in an Array 数组中的 k 个最强值
- 1472. Design Browser History 设计浏览器历史记录
- 1631. Path With Minimum Effort 最小体力消耗路径
- 1769. Minimum Number of Operations to Move All Balls to Each Box 移动所有球到每个盒子所需的最小操作数
- 1823. Find the Winner of the Circular Game 找出游戏的获胜者

评论与交流