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...
这题不难,核心是找零问题,首先看下题目: At a lemonade stand, each lemonade costs $5. Customers are standing in a queue ...
我又回来了,继续刷算法,可能的话,英文也想加强一下。由于好久没有刷了,先把新增的几个easy级别题目做了。首先看下面这题: Given two strings A and B of lowercase...
有什么建议,都可以在此留言。依照优先级和合理性会进行调整。