上一页 1 2 3 4 5 6 7 8 9 ··· 68 下一页
摘要: 题目如下: Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false. Example 1: Input: arr 阅读全文
posted @ 2021-05-21 14:05 seyjs 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given two positive integers n and k, the binary string Sn is formed as follows: S1 = "0" Si = Si-1 + "1" + reverse(invert(Si-1)) for i > 1 Where 阅读全文
posted @ 2021-05-21 14:04 seyjs 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given two positive integers n and k, the binary string Sn is formed as follows: S1 = "0" Si = Si-1 + "1" + reverse(invert(Si-1)) for i > 1 Where 阅读全文
posted @ 2021-01-31 08:02 seyjs 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string s and an array of integers cost where cost[i] is the cost of deleting the ith character in s. Return the minimum cost of deletion 阅读全文
posted @ 2021-01-31 07:59 seyjs 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 题目如下: 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) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 68 下一页