随笔分类 -  leetcode

上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要:Minimum Sum of Four Digit Number After Splitting Digits You are given a positive integer num consisting of exactly four digits. Split num into two new 阅读全文
posted @ 2022-10-30 12:09 iyiluo 阅读(29) 评论(0) 推荐(0)
摘要:Sum of Unique Elements You are given an integer array nums. The unique elements of an array are the elements that appear exactly once in the array. Re 阅读全文
posted @ 2022-10-30 11:48 iyiluo 阅读(29) 评论(0) 推荐(0)
摘要:Largest Perimeter Triangle Given an integer array nums, return the largest perimeter of a triangle with a non-zero area, formed from three of these le 阅读全文
posted @ 2022-10-28 17:05 iyiluo 阅读(34) 评论(0) 推荐(0)
摘要:Consecutive Characters The power of the string is the maximum length of a non-empty substring that contains only one unique character. Given a string 阅读全文
posted @ 2022-10-28 16:00 iyiluo 阅读(20) 评论(0) 推荐(0)
摘要:Valid Palindrome II Given a string s, return true if the s can be palindrome after deleting at most one character from it. Example 1: Input: s = "aba" 阅读全文
posted @ 2022-10-28 15:43 iyiluo 阅读(29) 评论(0) 推荐(0)
摘要:Occurrences After Bigram second third", where second comes immediately after first, and third comes immediately after second. Return an array of all t 阅读全文
posted @ 2022-10-27 17:57 iyiluo 阅读(22) 评论(0) 推荐(0)
摘要:Remove Palindromic Subsequences You are given a string s consisting only of letters 'a' and 'b'. In a single step you can remove one palindromic subse 阅读全文
posted @ 2022-10-27 17:57 iyiluo 阅读(30) 评论(0) 推荐(0)
摘要:Count Good Triplets 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], ar 阅读全文
posted @ 2022-10-27 17:56 iyiluo 阅读(31) 评论(0) 推荐(0)
摘要:Binary Search Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If 阅读全文
posted @ 2022-10-27 14:04 iyiluo 阅读(27) 评论(0) 推荐(0)
摘要:Minimum Changes To Make Alternatign Binary String You are given a string s consisting only of the characters '0' and '1'. In one operation, you can ch 阅读全文
posted @ 2022-10-27 14:04 iyiluo 阅读(29) 评论(0) 推荐(0)
摘要:Minimum Hours of Training to Win a Competition You are entering a competition, and are given two positive integers initialEnergy and initialExperience 阅读全文
posted @ 2022-10-26 18:53 iyiluo 阅读(27) 评论(0) 推荐(0)
摘要:Minimum Index Sum of Two Lists Given two arrays of strings list1 and list2, find the common strings with the least index sum. A common string is a str 阅读全文
posted @ 2022-10-26 18:52 iyiluo 阅读(32) 评论(0) 推荐(0)
摘要:Number Complement The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representa 阅读全文
posted @ 2022-10-26 18:52 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要:Decompress Run-length Encoded List We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacen 阅读全文
posted @ 2022-10-26 18:52 iyiluo 阅读(26) 评论(0) 推荐(0)
摘要:NimGame You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alternate 阅读全文
posted @ 2022-10-26 18:51 iyiluo 阅读(20) 评论(0) 推荐(0)
摘要:Self Dividing Numbers A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number beca 阅读全文
posted @ 2022-10-26 18:51 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要:Is Subsequence Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that i 阅读全文
posted @ 2022-10-26 18:50 iyiluo 阅读(32) 评论(0) 推荐(0)
摘要:Make Array Zero by Subtracting Equal Amounts You are given a non-negative integer array nums. In one operation, you must: Choose a positive integer x 阅读全文
posted @ 2022-10-25 21:44 iyiluo 阅读(34) 评论(0) 推荐(0)
摘要:Find Closest Number To Zero Given an integer array nums of size n, return the number with the value closest to 0 in nums. If there are multiple answer 阅读全文
posted @ 2022-10-25 20:30 iyiluo 阅读(32) 评论(0) 推荐(0)
摘要:Summary Ranges You are given a sorted unique integer array nums. A range [a,b] is the set of all integers from a to b (inclusive). Return the smallest 阅读全文
posted @ 2022-10-25 20:17 iyiluo 阅读(28) 评论(0) 推荐(0)

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