标签: leetcode
-
leetcode讲解–682. Baseball Game
Given a list of strings, each string can be one of the …
-
leetcode讲解–884. Uncommon Words from Two Sentences
We are given two sentences A and B. (A sentence is a st…
-
leetcode讲解–791. Custom Sort String
S and T are strings composed of lowercase letters. In S…
-
leetcode讲解–897. Increasing Order Search Tree
Given a tree, rearrange the tree in in-order so that th…
-
leetcode讲解–959. Regions Cut By Slashes
In a N x N grid composed of 1 x 1 squares, each 1 x 1 s…
-
leetcode讲解–766. Toeplitz Matrix
A matrix is Toeplitz if every diagonal from top-left to…
-
leetcode讲解–893. Groups of Special-Equivalent Strings
Two strings S and T are special-equivalent if after any…
-
965-单值二叉树
如果二叉树每个节点都具有相同的值,那么该二叉树就是单值二叉树。 只有给定的树是单值二叉树时,才返回 true;…
-
leetcode讲解–821. Shortest Distance to a Character
Given a string S and a character C, return an array of …
-
leetcode讲解–872. Leaf-Similar Trees
Consider all the leaves of a binary tree. From left to …