摘要: 题目如下: There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows: In each step, you will choose any 3 piles 阅读全文
posted @ 2020-09-14 17:15 seyjs 阅读(263) 评论(0) 推荐(0)
摘要: 题目如下: Given an integer n and an integer array rounds. We have a circular track which consists of n sectors labeled from 1 to n. A marathon will be hel 阅读全文
posted @ 2020-09-14 17:12 seyjs 阅读(232) 评论(0) 推荐(0)
摘要: 题目如下: Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] 阅读全文
posted @ 2020-09-14 17:09 seyjs 阅读(301) 评论(0) 推荐(0)
摘要: 题目如下: Given a parentheses string s containing only the characters '(' and ')'. A parentheses string is balanced if: Any left parenthesis '(' must have 阅读全文
posted @ 2020-09-14 17:05 seyjs 阅读(229) 评论(0) 推荐(0)
摘要: 题目如下: Given two strings s and t, your goal is to convert s into t in k moves or less. During the ith (1 <= i <= k) move you can: Choose any index j (1 阅读全文
posted @ 2020-09-14 16:56 seyjs 阅读(286) 评论(0) 推荐(0)
摘要: 题目如下: Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing f 阅读全文
posted @ 2020-09-14 16:42 seyjs 阅读(295) 评论(0) 推荐(0)
摘要: 题目如下: Given an integer array arr of distinct integers and an integer k. A game will be played between the first two elements of the array (i.e. arr[0] 阅读全文
posted @ 2020-09-14 16:32 seyjs 阅读(175) 评论(0) 推荐(0)
摘要: 题目如下: Given an array of integers arr, and three integers a, b and c. You need to find the number of good triplets. A triplet (arr[i], arr[j], arr[k])  阅读全文
posted @ 2020-09-14 16:03 seyjs 阅读(257) 评论(0) 推荐(0)
摘要: 题目如下: There is a room with n bulbs, numbered from 0 to n-1, arranged in a row from left to right. Initially all the bulbs are turned off. Your task is 阅读全文
posted @ 2020-09-14 15:41 seyjs 阅读(213) 评论(0) 推荐(0)
摘要: 题目如下: Given a string s and an integer array indices of the same length. The string s will be shuffled such that the character at the ith position move 阅读全文
posted @ 2020-09-14 15:25 seyjs 阅读(296) 评论(0) 推荐(0)
摘要: 题目如下: You are given a string s, a split is called good if you can split s into 2 non-empty strings p and q where its concatenation is equal to s and t 阅读全文
posted @ 2020-09-14 15:20 seyjs 阅读(388) 评论(0) 推荐(0)
摘要: 题目如下: Given an array of integers arr. Return the number of sub-arrays with odd sum. As the answer may grow large, the answer must be computed modulo 1 阅读全文
posted @ 2020-09-14 15:12 seyjs 阅读(271) 评论(0) 推荐(0)
摘要: 题目如下: Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: Input: low = 3, high 阅读全文
posted @ 2020-09-14 15:03 seyjs 阅读(235) 评论(0) 推荐(0)
摘要: 题目如下: Given numBottles full water bottles, you can exchange numExchange empty water bottles for one full water bottle. The operation of drinking a ful 阅读全文
posted @ 2020-09-14 14:55 seyjs 阅读(325) 评论(0) 推荐(0)
摘要: 题目如下: You are given an undirected weighted graph of n nodes (0-indexed), represented by an edge list where edges[i] = [a, b] is an undirected edge con 阅读全文
posted @ 2020-09-14 14:52 seyjs 阅读(320) 评论(0) 推荐(0)