上一页 1 2 3 4 5 6 7 8 9 10 ··· 68 下一页
摘要: 题目如下: 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 阅读(110) 评论(0) 推荐(0)
摘要: 题目如下: Given an array arr that represents a permutation of numbers from 1 to n. You have a binary string of size n that initially has all its bits set 阅读全文
posted @ 2020-11-16 16:29 seyjs 阅读(164) 评论(0) 推荐(0)
摘要: 题目如下: 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)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 68 下一页