1290. Convert Binary Number in a Linked List to Integer

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

Given head which is a reference node to a singly-linked list. The value of each node in the linked l...

点击数:487 回复数:0

1287. Element Appearing More Than 25% In Sorted Array

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

Given an integer array sorted in non-decreasing order, there is exactly one integer in the array tha...

点击数:395 回复数:0

1281. Subtract the Product and Sum of Digits of an Integer

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

Given an integer number n, return the difference between the product of its digits and the sum of it...

点击数:372 回复数:0

1275. Find Winner on a Tic Tac Toe Game

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

Tic-tac-toe is played by two players A and B on a 3 x 3 grid. Here are the rules of Tic-Tac-Toe: Pla...

点击数:431 回复数:0

1266. Minimum Time Visiting All Points

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

On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return the minimum ...

点击数:445 回复数:0

1260. Shift 2D Grid

作者:sryan 更新时间:2021-02-26 18:51 分类:数据结构与算法

Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift ope...

点击数:463 回复数:0

1252. Cells with Odd Values in a Matrix

作者:sryan 更新时间:2021-02-26 18:26 分类:数据结构与算法

Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices w...

点击数:372 回复数:0

1232. Check If It Is a Straight Line

作者:sryan 更新时间:2021-02-26 17:46 分类:数据结构与算法

You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate ...

点击数:406 回复数:0

1221. Split a String in Balanced Strings

作者:sryan 更新时间:2021-02-26 17:27 分类:数据结构与算法

Balanced strings are those that have an equal quantity of 'L' and 'R' characters. Given a balanced s...

点击数:456 回复数:0

1217. Minimum Cost to Move Chips to The Same Position

作者:sryan 更新时间:2021-02-26 17:18 分类:数据结构与算法

We have n chips, where the position of the ith chip is position[i]. We need to move all the chips to...

点击数:419 回复数:0