上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 33 下一页
摘要: Increasing Decreasing String You are given a string s. Reorder the string using the following algorithm: Pick the smallest character from s and append 阅读全文
posted @ 2022-11-09 18:43 iyiluo 阅读(29) 评论(0) 推荐(0)
摘要: Binary Number with Alternating Bits Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have dif 阅读全文
posted @ 2022-11-09 18:43 iyiluo 阅读(24) 评论(0) 推荐(0)
摘要: Most Common Word Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guara 阅读全文
posted @ 2022-11-08 19:43 iyiluo 阅读(34) 评论(0) 推荐(0)
摘要: Count Equal and Divisible Pairs in an Array Given a 0-indexed integer array nums of length n and an integer k, return the number of pairs (i, j) where 阅读全文
posted @ 2022-11-08 19:43 iyiluo 阅读(38) 评论(0) 推荐(0)
摘要: Detect Capital We define the usage of capitals in a word to be right when one of the following cases holds: All letters in this word are capitals, lik 阅读全文
posted @ 2022-11-08 19:43 iyiluo 阅读(29) 评论(0) 推荐(0)
摘要: Check if Binary String Has at Most One Segment of Ones Given a binary string s without leading zeros, return true if s contains at most one contiguous 阅读全文
posted @ 2022-11-08 19:42 iyiluo 阅读(22) 评论(0) 推荐(0)
摘要: Array Partition Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of m 阅读全文
posted @ 2022-11-08 19:30 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要: Maximum Population Year You are given a 2D integer array logs where each logs[i] = [birthi, deathi] indicates the birth and death years of the ith per 阅读全文
posted @ 2022-11-08 19:29 iyiluo 阅读(20) 评论(0) 推荐(0)
摘要: Count the Number of Consistent Strings You are given a string allowed consisting of distinct characters and an array of strings words. A string is con 阅读全文
posted @ 2022-11-08 19:29 iyiluo 阅读(33) 评论(0) 推荐(0)
摘要: Shift 2D Grid Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] moves 阅读全文
posted @ 2022-11-08 19:29 iyiluo 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 33 下一页