标签: leetcode
-
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, constru…
-
leetcode讲解–856. Score of Parentheses
Given a balanced parentheses string S, compute the scor…
-
leetcode 148 Sort List
Sort a linked list in O(n log n) time using constant sp…
-
leetcode讲解–695. Max Area of Island
Given a non-empty 2D array grid of 0’s and 1’s, an isla…
-
leetcode讲解–647. Palindromic Substrings
Given a string, your task is to count how many palindro…
-
leetcode讲解–892. Surface Area of 3D Shapes
Each value v = grid[i][j] represents a tower of v cubes…
-
leetcode讲解–917. Reverse Only Letters
Given a string S, return the “reversed” string where al…
-
leetcode讲解–824. Goat Latin
A sentence S is given, composed of words separated by s…
-
leetcode讲解–540. Single Element in a Sorted Array
Given a sorted array consisting of only integers where …
-
leetcode-019-删除链表倒数第N个结点(Remove Nth Node From End of List)
Given a linked list, remove the n-th node from the end …