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...

点击数:542 回复数: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...

点击数:503 回复数: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...

点击数:439 回复数: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. ...

点击数:430 回复数: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]...

点击数:483 回复数: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...

点击数:631 回复数: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,...

点击数:486 回复数: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...

点击数:433 回复数: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 ...

点击数:437 回复数:0

961. N-Repeated Element in Size 2N Array

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

In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeate...

点击数:458 回复数:0