摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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] 阅读全文
摘要:
题目如下: Given a parentheses string s containing only the characters '(' and ')'. A parentheses string is balanced if: Any left parenthesis '(' must have 阅读全文
摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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 阅读全文
摘要:
题目如下: 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] 阅读全文
摘要:
题目如下: 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]) 阅读全文