摘要: There are some chips, and the i-th chip is at position chips[i]. You can perform any of the two following types of moves any number of times (possibly 阅读全文
posted @ 2019-10-07 20:09 rarecu 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Given an integer array arr and an integer difference, return the length of the longest subsequence in arr which is an arithmetic sequence such that th 阅读全文
posted @ 2019-10-07 20:03 rarecu 阅读(158) 评论(0) 推荐(0) 编辑
摘要: In a gold mine grid of size m * n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. Return the ma 阅读全文
posted @ 2019-10-07 19:51 rarecu 阅读(147) 评论(0) 推荐(0) 编辑