LeetCode 之 400-499 刷题笔记,指南,经验

因为题解较多,因此按照题号排序,每 100 道题汇总到一起。 你可以在侧边栏点击题号所处的范围,也可以通过 Ctrl + F 搜索题号/标题。

LeetCode 之 400-499 刷题笔记

400. Nth Digit 第 N 位数字

401. Binary Watch 二进制手表

402. Remove K Digits 移掉 K 位数字

404. Sum of Left Leaves 左叶子之和

405. Convert a Number to Hexadecimal 数字转换为十六进制数

406. Queue Reconstruction by Height 根据身高重建队列

408. Valid Word Abbreviation 有效单词缩写

409. Longest Palindrome 最长回文串

412. Fizz Buzz Fizz Buzz

413. Arithmetic Slices 等差数列划分

414. Third Maximum Number 第三大的数

415. Add Strings 字符串相加

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 有效的单词方块

423. Reconstruct Original Digits from English 从英文中重建数字

424. Longest Repeating Character Replacement 替换后的最长重复字符

426. Convert Binary Search Tree to Sorted Doubly Linked List 将二叉搜索树转化为排序的双向链表

427. Construct Quad Tree 建立四叉树

429. N-ary Tree Level Order Traversal N 叉树的层序遍历

430. Flatten a Multilevel Doubly Linked List 扁平化多级双向链表

433. Minimum Genetic Mutation 最小基因变化

434. Number of Segments in a String 字符串中的单词数

435. Non-overlapping Intervals 无重叠区间

436. Find Right Interval 寻找右区间

437. Path Sum III 路径总和 III

438. Find All Anagrams in a String 找到字符串中所有字母异位词

441. Arranging Coins 排列硬币

442. Find All Duplicates in an Array 数组中重复的数据

443. String Compression 压缩字符串

445. Add Two Numbers II 两数相加 II

447. Number of Boomerangs 回旋镖的数量

448. Find All Numbers Disappeared in an Array 找到所有数组中消失的数字

449. Serialize and Deserialize BST 序列化和反序列化二叉搜索树

450. Delete Node in a BST 删除二叉搜索树中的节点

451. Sort Characters By Frequency 根据字符出现频率排序

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 环形数组是否存在循环

458. Poor Pigs 可怜的小猪

459. Repeated Substring Pattern 重复的子字符串

461. Hamming Distance 汉明距离

462. Minimum Moves to Equal Array Elements II 最少移动次数使数组元素相等 II

463. Island Perimeter 岛屿的周长

467. Unique Substrings in Wraparound String 环绕字符串中唯一的子字符串

468. Validate IP Address 验证IP地址

469. Convex Polygon 凸多边形

470. Implement Rand10() Using Rand7() 用 Rand7() 实现 Rand10()

472. Concatenated Words 连接词

473. Matchsticks to Square 火柴拼正方形

474. Ones and Zeroes 一和零

475. Heaters 供暖器

476. Number Complement 数字的补数

477. Total Hamming Distance 汉明距离总和

478. Generate Random Point in a Circle 在圆内随机生成点

479. Largest Palindrome Product 最大回文数乘积

480. Sliding Window Median 滑动窗口中位数

481. Magical String 神奇字符串

482. License Key Formatting 密钥格式化

485. Max Consecutive Ones 最大连续 1 的个数

486. Predict the Winner 预测赢家

487. Max Consecutive Ones II 最大连续1的个数 II

490. The Maze 迷宫

491. Increasing Subsequences 递增子序列

492. Construct the Rectangle 构造矩形

494. Target Sum 目标和

495. Teemo Attacking 提莫攻击

496. Next Greater Element I 下一个更大元素 I

497. Random Point in Non-overlapping Rectangles 非重叠矩形中的随机点

498. Diagonal Traverse 对角线遍历