1002. Find Common Characters

作者:sryan 更新时间:2021-01-14 17:41 分类:数据结构与算法

Given an array A of strings made only from lowercase letters, return a list of all characters that s...

点击数:463 回复数:0

999. Available Captures for Rook

作者:sryan 更新时间:2021-01-14 17:12 分类:数据结构与算法

On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and...

点击数:414 回复数:0

997. Find the Town Judge

作者:sryan 更新时间:2021-01-14 15:20 分类:数据结构与算法

In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is sec...

点击数:405 回复数:0

993. Cousins in Binary Tree

作者:sryan 更新时间:2021-01-14 14:53 分类:数据结构与算法

In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. T...

点击数:342 回复数:0

989. Add to Array-Form of Integer

作者:sryan 更新时间:2021-01-11 16:46 分类:数据结构与算法

For a non-negative integer X, the array-form of X is an array of its digits in left to right order. ...

点击数:345 回复数:0

985. Sum of Even Numbers After Queries

作者:sryan 更新时间:2021-01-11 15:58 分类:数据结构与算法

We have an array A of integers, and an array queries of queries. For the i-th query val = queries[i]...

点击数:367 回复数:0

977. Squares of a Sorted Array

作者:sryan 更新时间:2021-01-11 15:41 分类:数据结构与算法

Given an integer array nums sorted in non-decreasing order, return an array of the squares of each n...

点击数:434 回复数:0

976. Largest Perimeter Triangle

作者:sryan 更新时间:2021-01-11 15:11 分类:数据结构与算法

Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area,...

点击数:386 回复数:0

970. Powerful Integers

作者:sryan 更新时间:2021-01-11 14:44 分类:数据结构与算法

Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some int...

点击数:333 回复数:0

965. Univalued Binary Tree

作者:sryan 更新时间:2021-01-11 13:52 分类:数据结构与算法

A binary tree is univalued if every node in the tree has the same value. Return true if and only if ...

点击数:354 回复数:0