随笔分类 -  leetcode

上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要:Flood Fill An image is represented by an m x n integer grid image where image[i][j] represents the pixel value of the image. You are also given three 阅读全文
posted @ 2023-03-31 19:53 iyiluo 阅读(20) 评论(0) 推荐(0)
摘要:Convert Integer to the Sum of Two No-Zero Integers No-Zero integer is a positive integer that does not contain any 0 in its decimal representation. Gi 阅读全文
posted @ 2023-03-29 20:37 iyiluo 阅读(24) 评论(0) 推荐(0)
摘要:Complement of Base 10 Integer 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 binar 阅读全文
posted @ 2023-03-29 20:36 iyiluo 阅读(24) 评论(0) 推荐(0)
摘要:Duplicate Zeros Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that ele 阅读全文
posted @ 2023-03-29 20:36 iyiluo 阅读(20) 评论(0) 推荐(0)
摘要:Find the Distance Value Between Two Arrays Given two integer arrays arr1 and arr2, and the integer d, return the distance value between the two arrays 阅读全文
posted @ 2023-03-24 19:59 iyiluo 阅读(26) 评论(0) 推荐(0)
摘要:Check If All 1's Are at Least Length K Places Away Given an binary array nums and an integer k, return true if all 1's are at least k places away from 阅读全文
posted @ 2023-03-24 19:59 iyiluo 阅读(22) 评论(0) 推荐(0)
摘要:Number of Students Doing Homework at Given Time Given two integer arrays startTime and endTime and given an integer queryTime. The ith student started 阅读全文
posted @ 2023-03-24 19:58 iyiluo 阅读(25) 评论(0) 推荐(0)
摘要:Running Sum of 1d Array Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nu 阅读全文
posted @ 2023-03-24 19:58 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要:Path Crossing Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. 阅读全文
posted @ 2023-03-11 13:39 iyiluo 阅读(27) 评论(0) 推荐(0)
摘要:Count Odd Numbers in an Interval Range Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). 阅读全文
posted @ 2023-03-11 13:38 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要:Make The String Great Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s 阅读全文
posted @ 2023-03-11 13:38 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要:Squares of a Sorted Array Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decr 阅读全文
posted @ 2023-03-11 13:37 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要:Remove Outermost Parentheses A valid parentheses string is either empty "", "(" + A + ")", or A + B, where A and B are valid parentheses strings, and 阅读全文
posted @ 2023-03-11 13:37 iyiluo 阅读(26) 评论(0) 推荐(0)
摘要:Relative Sort Array Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of 阅读全文
posted @ 2023-03-11 13:37 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要:Greatest Common Divisor of Strings For two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t is concatenated with itself o 阅读全文
posted @ 2023-03-11 13:37 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要:Create Target Array in the Given Order Given two arrays of integers nums and index. Your task is to create target array under the following rules: Ini 阅读全文
posted @ 2023-03-11 13:36 iyiluo 阅读(25) 评论(0) 推荐(0)
摘要:Find Lucky Integer in An Array Given an array of integers arr, a lucky integer is an integer that has a frequency in the array equal to its value. Ret 阅读全文
posted @ 2023-03-11 13:36 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要:String Matching in an Array Given an array of string words, return all strings in words that is a substring of another word. You can return the answer 阅读全文
posted @ 2023-03-11 13:36 iyiluo 阅读(34) 评论(0) 推荐(0)
摘要:Rectangle Overlap An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and 阅读全文
posted @ 2023-03-11 13:35 iyiluo 阅读(27) 评论(0) 推荐(0)
摘要:Shuffle String You are 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 阅读全文
posted @ 2023-03-04 12:19 iyiluo 阅读(29) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 15 下一页