标签: leetcode
-
236. Lowest Common Ancestor of a Binary Tree
Given a binary tree, find the lowest common ancestor (L…
-
299. Bulls and Cows
You are playing the following Bulls and Cows game with …
-
300. Longest Increasing Subsequence
Given an unsorted array of integers, find the length of…
-
304. Range Sum Query 2D – Immutable
Given a 2D matrix matrix, find the sum of the elements …
-
LeetCode 321. Create Maximum Number
Given two arrays of length m and n with digits 0-9 repr…
-
【Leetcode】102. 二叉树的层次遍历
我们数据结构的书上教的层序遍历,就是利用一个队列,不断的把左子树和右子树入队。但是这个题目还要要求按照层输出。…
-
109. Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in…
-
230. Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmalles…
-
LeetCode 319. Bulb Switcher
There are n bulbs that are initially off. You first tur…
-
228. Summary Ranges
Given a sorted integer array without duplicates, return…