2019年4月11日

摘要: Given an array of integers A, a move consists of choosing any A[i], and incrementing it by 1. Return the least number of moves to make every value in 阅读全文
posted @ 2019-04-11 08:49 一直走在路上 阅读(146) 评论(0) 推荐(0)
摘要: We have an array A of integers, and an array queries of queries. For the i-th query val = queries[i][0], index = queries[i][1], we add val to A[index] 阅读全文
posted @ 2019-04-11 06:07 一直走在路上 阅读(97) 评论(0) 推荐(0)
摘要: On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters 'R', ' 阅读全文
posted @ 2019-04-11 03:08 一直走在路上 阅读(124) 评论(0) 推荐(0)
摘要: Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Input: A = [4,5,0,-2,- 阅读全文
posted @ 2019-04-11 01:18 一直走在路上 阅读(108) 评论(0) 推荐(0)

导航