复习了原码、反码、补码,位运算(尤其是异或,Java记作【^】) a^b=b^a a^0=a a^a=0 a^b=c > a^b^b=c^b > a=c^b 注意:位运算时,符号位也是参与运算的。 给定一个整数数组 nums,其中恰好有两个元素只出现一次,其余所有元素均出现两次。 找出只出现一次的那 ...
分类:
其他好文 时间:
2020-06-06 21:56:13
阅读次数:
77
壹 ? 引 又到了快乐的leetcode算法时间,今天的题目特别特别简单,来自leetcode557. 反转字符串中的单词 III,题目描述如下: 给定一个字符串,你需要反转字符串中每个单词的字符顺序,同时仍保留空格和单词的初始顺序。 示例 1: 输入: "Let's take LeetCode c ...
分类:
Web程序 时间:
2020-06-04 01:31:16
阅读次数:
67
123. 买卖股票的最佳时机 III 解释见如下代码: class Solution { public: int maxProfit(vector<int>& prices) { if(prices.size()==0)//容易忘的点 return 0; int dp[prices.size()+1 ...
分类:
其他好文 时间:
2020-06-04 01:23:35
阅读次数:
98
此博客链接:https://www.cnblogs.com/ping2yingshi/p/13027189.html 反转字符串中的字符串() 题目链接:https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/ 给定一个字符串,你 ...
分类:
其他好文 时间:
2020-06-01 20:28:19
阅读次数:
76
定长子串中元音的最大数目 给你字符串 s 和整数 k 。 请返回字符串 s 中长度为 k 的单个子字符串中可能包含的最大元音字母数。 英文中的 元音字母 为(a, e, i, o, u)。 示例 1: 输入:s = "abciiidef", k = 3 输出:3 解释:子字符串 "iii" 包含 3 ...
分类:
其他好文 时间:
2020-05-24 13:52:18
阅读次数:
45
地址 https://leetcode-cn.com/contest/weekly-contest-190/problems/maximum-number-of-vowels-in-a-substring-of-given-length/ 题目描述 给你字符串 s 和整数 k 。 请返回字符串 s ...
分类:
其他好文 时间:
2020-05-24 13:29:42
阅读次数:
169
CAT ET III Caterpillar Scanner Features: Display graph and log status parameters. Retrieve prognostic data including histograms, engine totals for fue ...
分类:
其他好文 时间:
2020-05-22 19:37:07
阅读次数:
70
CAT ET III Caterpillar Scanner Features: Display graph and log status parameters. Retrieve prognostic data including histograms, engine totals for fue ...
分类:
其他好文 时间:
2020-05-22 19:09:25
阅读次数:
65
原文:NetCore MimeMapping获取MIME public static class MimeMapping { private abstract class MimeMappingDictionaryBase { private readonly Dictionary _mapping... ...
分类:
移动开发 时间:
2020-05-21 12:06:07
阅读次数:
63
描述 Before bridges were common, ferries were used to transport cars across rivers. River ferries, unlike their larger cousins, run on a guide line and ...
分类:
其他好文 时间:
2020-05-18 14:16:55
阅读次数:
47