[算法总结] 17 题! BAT面试涉及的链表题都在这里了

8-28 2,776 °C

链表是面试过程中经常被问到的,这里把剑指offer 和 LeetCode 中的相关题目做一个汇总,方便复习。 1. 在 O(1) 时间删除链表节点 题目描述:给定单向链表的头...
阅读全文 0

[LeetCode] Minimum Depth of Binary Tree

7-08 840 °C

链接:https://leetcode.com/problems/minimum-depth-of-binary-tree/description/ 难度:Easy 题目:111. Minimum Depth of Binary Tree Given a binary tre...
阅读全文 0

[LeetCode] Maximum Depth of Binary Tree

7-08 817 °C

链接:https://leetcode.com/submissions/detail/136407355/ 难度:Easy 题目:104. Maximum Depth of Binary Tree Given a binary tree, find its maximum d...
阅读全文 0

[LeetCode] Construct Binary Tree from Inorder and Postorder Traversal

7-08 753 °C

链接:https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/description/ 难度:Medium 题目:106. Construct Binar...
阅读全文 0

[LeetCode] Construct Binary Tree from Preorder and Inorder Traversal

7-08 873 °C

链接:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/ 难度:Medium 题目:105. Construct Binary...
阅读全文 0

[LeetCode]Longest Continuous Increasing Subsequence 最长连续增长序列

7-08 832 °C

链接:https://leetcode.com/problems/longest-continuous-increasing-subsequence/description/ 难度:Easy 题目:674. Longest Continuous Increasing Subs...
阅读全文 0

[LeetCode]Max Area of Island 岛屿的最大面积

7-08 992 °C

链接:https://leetcode.com/problems/max-area-of-island/description/ 难度:Easy 题目:695. Max Area of Island Given a non-empty 2D array grid of 0&#...
阅读全文 0

[LeetCode]Degree of an Array 数组的度

7-08 822 °C

链接:https://leetcode.com/problems/degree-of-an-array/description/ 难度:Easy 题目:697. Degree of an Array Given a non-empty array of non-negativ...
阅读全文 0

[LeetCode]1-bit and 2-bit Characters 1位和2位字符

7-08 804 °C

链接:https://leetcode.com/problems/1-bit-and-2-bit-characters/description/ 难度:Easy 题目:717. 1-bit and 2-bit We have two special characters. T...
阅读全文 0

[LeetCode]Merge Sorted Array 合并排序数组

7-08 784 °C

链接:https://leetcode.com/problems/merge-sorted-array/description/ 难度:Easy 题目:88. Merge Sorted Array Given two sorted integer arrays nums1 a...
阅读全文 0