botnet-dobbs / LeetCode4FLAG

🔥 🔥 High frequent interview LeetCode 100 for FaceBook,Linkedin,Amazon,Google,Microsoft. More importantly, the problems' solutions are provided,include C++, Python and Java.

Home Page:https://github.com/Charmve

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

       



Version No. English Version Chinese Version

LeetCode4FLAG

🔥 🔥 High frequent interview LeetCode test for FaceBook,Linkedin,Amazon,Google. More importantly, the problems' solutions are provided. Offer, offer, offer!

  ☁️  ☁️  🌞    ☁️        ☁️  
        ☁️   ✈️    ☁️  🚁
🏡 🏫 🏢 🏣 🏥 🏦 🏪 🏩 🏨 🏬
  👫🌲/     🚶‍ | 🚍  \🌳 🍃
   🌱/  🚘     |🏃‍    \🌼🐈
  🌳/🐢    🛵  | 🚔    \ 💐💃🕺
 🌴/   🚖      |         \🌲 👫
 

Top100

Company Level LeetCode Link Code

Amazon
Easy ✂️ 74. Search a 2D Matrix
🐼 1. Two Sum
📈 21. Merge Two Sorted Lists
🔎 107. Binary Tree Level Order Traversal II
👑 32. Longest Valid Parentheses
🎡 20. Valid Parentheses
🌄 200. Number of Islands
🐋 202. Happy Number
🐑 1120. Maximum Average Subtree
🐧 543. Diameter of Binary Tree
Medium
⛺ 297. Serialize and Deserialize Binary Tree
🌈 240. Search a 2D Matrix II
🚀 124. Binary Tree Maximum Path Sum
Hard
⛺ 297. Serialize and Deserialize Binary Tree
🌈 240. Search a 2D Matrix II

Google
Easy 🚠 94. Binary Tree Inorder Traversal
⛵ 863. All Nodes Distance K in Binary Tree
📈 21. Merge Two Sorted Lists
🔎 107. Binary Tree Level Order Traversal II
👑 32. Longest Valid Parentheses
🎡 20. Valid Parentheses
🌄 200. Number of Islands
🐋 202. Happy Number
🐑 1120. Maximum Average Subtree
🐏 543. Diameter of Binary Tree
Medium
⛵ 494. Target Sum
🚁 938. Range Sum of BST
🚀 124. Binary Tree Maximum Path Sum
Hard
⛺ 173. Binary Search Tree Iterator
🌈 239. Sliding Window Maximum

FaceBook
Easy 🚠 833. Find And Replace in String
🌄 200. Number of Islands
🐠 67. Add Binary
Medium
🚩 90. Subsets II
🍐 17. Letter Combinations of a Phone Number
🚁 525. Contiguous Array
Hard
🎄 126. Word Ladder II
🎑 85. Maximal Rectangle

LinkedIn
Easy 🎏 152. Maximum Product Subarray
🍋 678. Valid Parenthesis String
Medium
⛵ 245. Shortest Word Distance III
🚁 178. Rank Scores
Hard
⛺ 173. Binary Search Tree Iterator
🌈 239. Sliding Window Maximum

MicroSoft
Easy 🎑 215. Kth Largest Element in an Array
🍋 678. Valid Parenthesis String
Medium
⛵ 236. Lowest Common Ancestor of a Binary Tree
🚁 468. Validate IP Address
Hard
⛺ 99. Recover Binary Search Tree
🌈 239. Sliding Window Maximum



Classified by Algorithm

Algorithm LeetCode Link Level Code

Dynamic Programming
动态规划
⛺ 568. Maximum Vacation Days ⭐⭐⭐⭐⭐
🌈 70. Climbing Stairs ⭐⭐
🚀 10. Regular Expression Matching ⭐⭐⭐⭐⭐
⛺ 198. House Robber ⭐⭐
🌈 139. Word Break ⭐⭐⭐
🎏 152. Maximum Product Subarray ⭐⭐⭐⭐⭐
🌈 91. Decode Ways ⭐⭐⭐⭐
🐼 72. Edit Distance ⭐⭐⭐⭐⭐

Divide & Conquer
分治**
✂️ 4. Median of Two Sorted Arrays ⭐⭐⭐⭐⭐
🐼 23. Merge k Sorted Lists ⭐⭐⭐⭐⭐
📈 110. Balanced Binary Tree ⭐⭐
🚀 124. Binary Tree Maximum Path Sum ⭐⭐⭐⭐⭐
🐼 98. Validate Binary Search Tree ⭐⭐⭐

Dichotomy
二分法
✂️ 153. Find Minimum in Rotated Sorted Array ⭐⭐⭐
🐼 33. Search in Rotated Sorted Array ⭐⭐⭐
📈 69. Sqrt(x) ⭐⭐
🔎 29. Divide Two Integers ⭐⭐⭐
🐼 162. Find Peak Element ⭐⭐⭐

Recursion
递归
✂️ 74. Search a 2D Matrix ⭐⭐⭐⭐⭐
🐼 1. Two Sum ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐

Sorting Algorithm
排序算法
✂️ 74. Search a 2D Matrix ⭐⭐⭐⭐
🐼 1. Two Sum ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐⭐⭐

Traverse/Visit
遍历
✂️ 74. Search a 2D Matrix ⭐⭐⭐⭐
🐼 1. Two Sum ⭐⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐⭐

Dual Pointer Algorithm
双指针算法
✂️ 3. Longest Substring Without Repeating Characters ⭐⭐⭐
🐼 1. Two Sum ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐

Breadth First Search
宽度/广度优先搜索
✂️ 74. Search a 2D Matrix ⭐⭐⭐⭐
🐼 1. Two Sum ⭐⭐⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐

Depth First Search
深度优先搜索
✂️ 74. Search a 2D Matrix ⭐⭐⭐
🐼 1. Two Sum ⭐⭐⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐
📈 21. Merge Two Sorted Lists ⭐⭐⭐⭐
🔎 107. Binary Tree Level Order Traversal II ⭐⭐⭐

Guide

Dynamic Programming
动态规划

To-Do

双指针算法

  • 最长无重复字符的子串
  • 装最多水的容器
  • 接雨水
  • 有效回文串
  • 带环链表 II

排序算法

  • 摆动排序
  • 构造队列
  • Nuts 和 Bolts 的问题
  • 第k大元素
  • 无序数组K小元素
  • 逆序对
  • 区间和的个数

宽度优先搜索

  • 单词接龙
  • 岛屿的个数
  • 二叉树的层次遍历
  • 克隆图
  • 二叉树的锯齿形层次遍历
  • 二叉树的右视图

递归

  • 生成括号
  • 格雷编码
  • 平衡二叉树
  • 电话号码的字母组合
  • 全排列
  • 二叉树中的最大路径和

遍历

  • 买卖股票的最佳时机 III
  • 最大子数组 II
  • 二叉树的层次遍历
  • 二叉树的前序遍历
  • 二叉树的后序遍历
  • 二叉树的所有路径
  • 二叉树的层次遍历 II

深度优先搜索

  • 二叉树的最小深度
  • 插入五
  • 克隆图
  • 单词接龙 II
  • 分割回文串
  • N皇后问题

Community

License

知识共享许可协议

💖 Support this project

Donating to help me continue working on this project. BuymeaCoffee

Buy Me A Coffee

Donate with Paypal Donate with WeChat

© 2021 Charmve.

Updating...

About

🔥 🔥 High frequent interview LeetCode 100 for FaceBook,Linkedin,Amazon,Google,Microsoft. More importantly, the problems' solutions are provided,include C++, Python and Java.

https://github.com/Charmve


Languages

Language:Python 35.7%Language:C++ 33.6%Language:Java 30.7%