上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 60 下一页
摘要: 1. 题目 题目地址(1422. 分割字符串的最大得分 - 力扣(LeetCode)) https://leetcode.cn/problems/maximum-score-after-splitting-a-string/?envType=study-plan-v2&envId=primers-l 阅读全文
posted @ 2024-04-29 11:07 DawnTraveler 阅读(43) 评论(0) 推荐(0)
摘要: 1. 题目 题目地址(1486. 数组异或操作 - 力扣(LeetCode)) https://leetcode.cn/problems/xor-operation-in-an-array/?envType=study-plan-v2&envId=primers-list 题目描述 给你两个整数,n 阅读全文
posted @ 2024-04-28 17:32 DawnTraveler 阅读(76) 评论(0) 推荐(0)
摘要: 1.性质 对于第五条进行解释, 可以看到如下例子, 四者异或运算结果位0(有1的位都出现了两次), 而 *i 也只是将位进行平移而已, 并不影响异或结果 011 010 001 000 2.补充 2.1 \(x \& (x-1)\) 去除最低位1 举例: \(x = a10000;\) (a为高位部 阅读全文
posted @ 2024-04-28 17:02 DawnTraveler 阅读(16) 评论(0) 推荐(0)
摘要: 1. 题目 题目地址(1470. 重新排列数组 - 力扣(LeetCode)) https://leetcode.cn/problems/shuffle-the-array/?envType=study-plan-v2&envId=primers-list 题目描述 给你一个数组 nums ,数组中 阅读全文
posted @ 2024-04-28 16:58 DawnTraveler 阅读(29) 评论(0) 推荐(0)
摘要: 1. 题目 题目地址(231. 2 的幂 - 力扣(LeetCode)) https://leetcode.cn/problems/power-of-two/?envType=study-plan-v2&envId=primers-list 题目描述 给你一个整数 n,请你判断该整数是否是 2 的幂 阅读全文
posted @ 2024-04-28 16:09 DawnTraveler 阅读(21) 评论(0) 推荐(0)
摘要: 1. 题目 题目地址( - 力扣(LeetCode)) https://leetcode.cn/problems/to-lower-case/?envType=study-plan-v2&envId=primers-list 题目描述 给你一个字符串 s ,将该字符串中的大写字母转换成相同的小写字母 阅读全文
posted @ 2024-04-28 15:11 DawnTraveler 阅读(35) 评论(0) 推荐(0)
摘要: 1.题目介绍 题目地址(c - 力扣(LeetCode)) https://leetcode.cn/problems/find-greatest-common-divisor-of-array/ 题目描述 给你一个整数数组 nums ,返回数组中最大数和最小数的 最大公约数 。 两个数的 最大公约数 阅读全文
posted @ 2024-04-28 14:45 DawnTraveler 阅读(102) 评论(0) 推荐(0)
摘要: 1. 题目 题目地址(566. 重塑矩阵 - 力扣(LeetCode)) https://leetcode.cn/problems/reshape-the-matrix/ 题目描述 在 MATLAB 中,有一个非常有用的函数 reshape ,它可以将一个 m x n 矩阵重塑为另一个大小不同(r 阅读全文
posted @ 2024-04-28 08:31 DawnTraveler 阅读(26) 评论(0) 推荐(0)
摘要: 1. 题目 题目地址(125. 验证回文串 - 力扣(LeetCode)) https://leetcode.cn/problems/valid-palindrome/ 题目描述 如果在将所有大写字符转换为小写字符、并移除所有非字母数字字符之后,短语正着读和反着读都一样。则可以认为该短语是一个 回文 阅读全文
posted @ 2024-04-27 19:39 DawnTraveler 阅读(47) 评论(0) 推荐(0)
摘要: 1. 定义 位于头文件 中 1.1 tolower tolower 函数用于将字符转换为小写形式, 如果参数 ch 是大写字母,则返回对应的小写字母;否则返回原始字符。 int tolower(int ch); 1.2 toupper toupper 函数用于将字符转换为大写形式, 如果参数 ch 阅读全文
posted @ 2024-04-27 17:41 DawnTraveler 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 60 下一页