上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 68 下一页
摘要: 题目如下: 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)
摘要: 题目如下: Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer ma 阅读全文
posted @ 2020-09-12 11:29 seyjs 阅读(175) 评论(0) 推荐(0)
摘要: 题目如下: Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: 阅读全文
posted @ 2020-09-12 11:14 seyjs 阅读(371) 评论(0) 推荐(0)
摘要: 题目如下: Given an array nums, you are allowed to choose one element of nums and change it by any value in one move. Return the minimum difference between 阅读全文
posted @ 2020-09-12 10:43 seyjs 阅读(526) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 68 下一页