摘要: 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) 编辑