随笔分类 -  leetcode

上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: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 阅读(28) 评论(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 阅读(27) 评论(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 阅读(30) 评论(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)
摘要:Merge Similar Items You are given two 2D integer arrays, items1 and items2, representing two sets of items. Each array items has the following propert 阅读全文
posted @ 2022-11-07 19:49 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要:Element Appearing More Than 25% In Sorted Array Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that 阅读全文
posted @ 2022-11-07 19:49 iyiluo 阅读(25) 评论(0) 推荐(0)
摘要:Maximum Number of Words Found in Sentences A sentence is a list of words that are separated by a single space with no leading or trailing spaces. You 阅读全文
posted @ 2022-11-07 19:48 iyiluo 阅读(38) 评论(0) 推荐(0)
摘要:Check if Number Has Equal Digit Count and Digit Value You are given a 0-indexed string num of length n consisting of digits. Return true if for every 阅读全文
posted @ 2022-11-04 19:10 iyiluo 阅读(33) 评论(0) 推荐(0)
摘要:Reach a Number You are standing at position 0 on an infinite number line. There is a destination at position target. You can make some number of moves 阅读全文
posted @ 2022-11-04 19:10 iyiluo 阅读(27) 评论(0) 推荐(0)
摘要:Minimum Difference Between Highest and Lowest of K Scores You are given a 0-indexed integer array nums, where nums[i] represents the score of the ith 阅读全文
posted @ 2022-11-04 19:07 iyiluo 阅读(26) 评论(0) 推荐(0)
摘要:Jewels and Stones You're given strings jewels representing the types of stones that are jewels, and stones representing the stones you have. Each char 阅读全文
posted @ 2022-11-04 19:07 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要:Minimum Absolute Difference Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elemen 阅读全文
posted @ 2022-11-04 19:06 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要:Robot Return to Origin There is a robot starting at the position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot 阅读全文
posted @ 2022-11-04 19:06 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要:Reformat The String You are given an alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You 阅读全文
posted @ 2022-11-04 19:05 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要:Detect Pattern of length M Repeated K or More Times Given an array of positive integers arr, find a pattern of length m that is repeated k or more tim 阅读全文
posted @ 2022-11-03 18:34 iyiluo 阅读(32) 评论(0) 推荐(0)
摘要:Maximum Repeating Substring For a string sequence, a string word is k-repeating if word concatenated k times is a substring of sequence. The word's ma 阅读全文
posted @ 2022-11-03 18:34 iyiluo 阅读(25) 评论(0) 推荐(0)
摘要:Find Winner on a Tic Tac Toe Game Tic-tac-toe is played by two players A and B on a 3 x 3 grid. The rules of Tic-Tac-Toe are: Players take turns placi 阅读全文
posted @ 2022-11-03 18:33 iyiluo 阅读(35) 评论(0) 推荐(0)
摘要:1-bit and 2-bit Characters We have two special characters: The first character can be represented by one bit 0. The second character can be represente 阅读全文
posted @ 2022-11-03 18:33 iyiluo 阅读(36) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页