摘要: 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 阅读(25) 评论(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 阅读(20) 评论(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 阅读(25) 评论(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 阅读(21) 评论(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 阅读(22) 评论(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 阅读(25) 评论(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 阅读(26) 评论(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 阅读(23) 评论(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 阅读(20) 评论(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 阅读(32) 评论(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 阅读(26) 评论(0) 推荐(0)