标签: leetcode
-
leetcode讲解–513. Find Bottom Left Tree Value
Given a binary tree, find the leftmost value in the las…
-
leetcode讲解–946. Validate Stack Sequences
Given two sequences pushed and popped with distinct val…
-
leetcode讲解–953. Verifying an Alien Dictionary
In an alien language, surprisingly they also use englis…
-
leetcode讲解–496. Next Greater Element I
You are given two arrays (without duplicates) nums1 and…
-
leetcode讲解–566. Reshape the Matrix
In MATLAB, there is a very useful function called ‘resh…
-
leetcode讲解–841. Keys and Rooms
There are N rooms and you start in room 0. Each room ha…
-
leetcode讲解–575. Distribute Candies
Given an integer array with even length, where differen…
-
leetcode讲解–868. Binary Gap
Given a positive integer N, find and return the longest…
-
leetcode讲解–669. Trim a Binary Search Tree
Given a binary search tree and the lowest and highest b…
-
leetcode讲解–877. Stone Game
Alex and Lee play a game with piles of stones. There ar…