Design hashset

作者:sryan 更新时间:2020-05-15 16:43 分类:数据结构与算法

Design a HashSet without using any built-in hash table libraries. To be specific, your design should...

点击数:537 回复数:0

Binary search

作者:sryan 更新时间:2020-05-15 16:23 分类:数据结构与算法

这题是基础题,但是细节挺多的,先上题目 Given a sorted (in ascending order) integer array nums of n elements and a targe...

点击数:481 回复数:0

Search in a binary search tree

作者:sryan 更新时间:2020-04-07 15:54 分类:数据结构与算法

这题没难度,首先看下题目: Given the root node of a binary search tree (BST) and a value. You need to find the no...

点击数:449 回复数:0

N-ary Tree Preorder Traversal

作者:sryan 更新时间:2020-04-07 15:40 分类:数据结构与算法

这题的数据结构还是上一题的,很简单,熟悉二叉树遍历的看一眼就写出来了。先看题目: Given an n-ary tree, return the preorder traversal of its n...

点击数:510 回复数:0

Maximum Depth of N-ary Tree

作者:sryan 更新时间:2020-04-07 15:31 分类:数据结构与算法

先看题目 Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the ...

点击数:502 回复数:0

Shortest Completing Word

作者:sryan 更新时间:2020-04-07 12:03 分类:数据结构与算法

这题没啥好说的,但是我理解题意理解了好久。。。 Find the minimum length word from a given dictionary words, which has all th...

点击数:482 回复数:0

To lower Case

作者:sryan 更新时间:2020-04-03 17:40 分类:数据结构与算法

这题不多说,不会做的闭门思过。 Implement function ToLowerCase() that has a string parameter str, and returns the sa...

点击数:555 回复数:0

Lemonade Change

作者:sryan 更新时间:2020-04-03 17:29 分类:数据结构与算法

这题不难,核心是找零问题,首先看下题目: At a lemonade stand, each lemonade costs $5. Customers are standing in a queue ...

点击数:445 回复数:0

Buddy Strings

作者:sryan 更新时间:2020-04-03 16:38 分类:数据结构与算法

我又回来了,继续刷算法,可能的话,英文也想加强一下。由于好久没有刷了,先把新增的几个easy级别题目做了。首先看下面这题: Given two strings A and B of lowercase...

点击数:489 回复数:0

3.02.01 开发意见征集

作者:sryan 更新时间:2020-03-30 10:09 分类:backmir 讨论区

有什么建议,都可以在此留言。依照优先级和合理性会进行调整。

点击数:3409 回复数:198