摘要: 题目如下: Given two arrays of integers nums1 and nums2, return the number of triplets formed (type 1 and type 2) under the following rules: Type 1: Triple 阅读全文
posted @ 2020-11-18 15:08 seyjs 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string s containing only lower case English letters and the '?' character, convert all the '?' characters into lower case letters such t 阅读全文
posted @ 2020-11-18 15:02 seyjs 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagonal and all the 阅读全文
posted @ 2020-11-18 14:38 seyjs 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array of integers nums, find the maximum length of a subarray where the product of all its elements is positive. A subarray of an array 阅读全文
posted @ 2020-11-18 14:33 seyjs 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array of positive integers arr, find a pattern of length m that is repeated k or more times. A pattern is a subarray (consecutive sub-s 阅读全文
posted @ 2020-11-18 14:19 seyjs 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a directed acyclic graph, with n vertices numbered from 0 to n-1, and an array edges where edges[i] = [fromi, toi] represents a directed e 阅读全文
posted @ 2020-11-18 14:01 seyjs 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an integer n, add a dot (".") as the thousands separator and return it in string format. Example 1: Input: n = 987 Output: "987" Example 2 阅读全文
posted @ 2020-11-18 13:55 seyjs 阅读(97) 评论(0) 推荐(0) 编辑