Consider all the leaves of a binary tree. From left to right order, the values of those leaves form ...
Given a positive integer N, find and return the longest distance between two consecutive 1's in the ...
Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it...
Design a HashSet without using any built-in hash table libraries. To be specific, your design should...
这题是基础题,但是细节挺多的,先上题目 Given a sorted (in ascending order) integer array nums of n elements and a targe...
这题没难度,首先看下题目: Given the root node of a binary search tree (BST) and a value. You need to find the no...
这题的数据结构还是上一题的,很简单,熟悉二叉树遍历的看一眼就写出来了。先看题目: Given an n-ary tree, return the preorder traversal of its n...
先看题目 Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the ...
这题没啥好说的,但是我理解题意理解了好久。。。 Find the minimum length word from a given dictionary words, which has all th...
这题不多说,不会做的闭门思过。 Implement function ToLowerCase() that has a string parameter str, and returns the sa...