摘要:
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
阅读(31)
评论(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
阅读(27)
评论(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
阅读(24)
评论(0)
推荐(0)
摘要:
Counting Bits Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary re 阅读全文
posted @ 2022-10-25 18:36
iyiluo
阅读(32)
评论(0)
推荐(0)
摘要:
Word Pattern Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection betwee 阅读全文
posted @ 2022-10-25 18:35
iyiluo
阅读(28)
评论(0)
推荐(0)
摘要:
Add Digits Given an integer num, repeatedly add all its digits until the result has only one digit, and return it. Example 1: Input: num = 38 Output: 阅读全文
posted @ 2022-10-25 18:34
iyiluo
阅读(17)
评论(0)
推荐(0)
摘要:
somorphic Strings Given two strings s and t, determine if they are isomorphic. Two strings s and t are isomorphic if the characters in s can be replac 阅读全文
posted @ 2022-10-25 18:33
iyiluo
阅读(29)
评论(0)
推荐(0)

浙公网安备 33010602011771号