上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 76 下一页
摘要: Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters  阅读全文
posted @ 2020-02-25 11:32 Schwifty 阅读(310) 评论(0) 推荐(0)
摘要: There is a sale in a supermarket, there will be a discount every n customer.There are some products in the supermarket where the id of the i-th produc 阅读全文
posted @ 2020-02-25 10:07 Schwifty 阅读(215) 评论(0) 推荐(0)
摘要: Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and in c 阅读全文
posted @ 2020-02-23 12:48 Schwifty 阅读(405) 评论(0) 推荐(0)
摘要: Given an integer num, find the closest two integers in absolute difference whose product equals num + 1 or num + 2. Return the two integers in any ord 阅读全文
posted @ 2020-02-23 12:37 Schwifty 阅读(162) 评论(0) 推荐(0)
摘要: Write a program to count the number of days between two dates. The two dates are given as strings, their format is YYYY-MM-DD as shown in the examples 阅读全文
posted @ 2020-02-23 10:52 Schwifty 阅读(377) 评论(0) 推荐(0)
摘要: Balanced strings are those who have equal quantity of 'L' and 'R' characters. Given a balanced string s split it in the maximum amount of balanced str 阅读全文
posted @ 2020-02-22 13:56 Schwifty 阅读(225) 评论(0) 推荐(1)
摘要: Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with - 阅读全文
posted @ 2020-02-22 13:47 Schwifty 阅读(179) 评论(0) 推荐(0)
摘要: Return the number of distinct non-empty substrings of text that can be written as the concatenation of some string with itself (i.e. it can be written 阅读全文
posted @ 2020-02-22 13:17 Schwifty 阅读(320) 评论(0) 推荐(0)
摘要: You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You need to r 阅读全文
posted @ 2020-02-22 12:16 Schwifty 阅读(223) 评论(0) 推荐(0)
摘要: Given a string s. In one step you can insert any character at any index of the string. Return the minimum number of steps to make s palindrome. A Pali 阅读全文
posted @ 2020-02-21 15:26 Schwifty 阅读(186) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 76 下一页