上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 98 下一页
摘要: 1012. Complement of Base 10 Integer Every non-negative integer N has a binary representation. For example, 5 can be represented as "101" in binary, 11 阅读全文
posted @ 2019-03-17 17:19 Veritas_des_Liberty 阅读(237) 评论(0) 推荐(0) 编辑
摘要: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2019-03-15 12:27 Veritas_des_Liberty 阅读(325) 评论(0) 推荐(0) 编辑
摘要: In a N x N grid representing a field of cherries, each cell is one of three possible integers. 0 means the cell is empty, so you can pass through; 1 m 阅读全文
posted @ 2019-03-15 09:44 Veritas_des_Liberty 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of integers, you can perform operations on the array. In each operation, you pick any nums[i] and delete it to earn nums[i] points 阅读全文
posted @ 2019-03-14 22:13 Veritas_des_Liberty 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Example 2: Note: 0 < s1.length, s2.len 阅读全文
posted @ 2019-03-14 20:53 Veritas_des_Liberty 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all 阅读全文
posted @ 2019-03-14 18:46 Veritas_des_Liberty 阅读(230) 评论(0) 推荐(0) 编辑
摘要: In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want to max 阅读全文
posted @ 2019-03-13 18:17 Veritas_des_Liberty 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Given a string S, find the number of different non-empty palindromic subsequences in S, and return that number modulo 10^9 + 7. A subsequence of a str 阅读全文
posted @ 2019-03-13 17:06 Veritas_des_Liberty 阅读(268) 评论(0) 推荐(0) 编辑
摘要: On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, so the 阅读全文
posted @ 2019-03-13 13:25 Veritas_des_Liberty 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Example 2: Note: Length of the given array will be 阅读全文
posted @ 2019-03-13 12:44 Veritas_des_Liberty 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 98 下一页