04 2021 档案

137. Single Number II
摘要:解法一: map (哈希表) 时间复杂度: O(n) 空间复杂度:O(n) class Solution { public: int singleNumber(vector<int>& nums) { int n = nums.size(); map<int, int> mp; mp.clear() 阅读全文

posted @ 2021-04-30 09:49 hannah_id 阅读(98) 评论(0) 推荐(0)

403. Frog Jump
摘要:class Solution { public: bool canCross(vector<int>& stones) { int n = stones.size(); vector<vector<int> > dp(n, vector<int>(n)); dp[0][0] = true; for( 阅读全文

posted @ 2021-04-29 10:43 hannah_id 阅读(32) 评论(0) 推荐(0)

TracIng DNS with wireshark
摘要:Q&A: Q:DNS查询/响应消息,通过TCP/UDP发送? A: UDP Q: 未完 阅读全文

posted @ 2021-04-28 17:37 hannah_id 阅读(74) 评论(0) 推荐(0)

Multicast (下)
摘要:参考链接:https://www.cnblogs.com/OceanF/p/9249779.html IP组播数据包的转发+逆向路径转发(RPF-Reverse Path Forwarding)组播包的转发不是基于IP包的目的地址的,而是用RPF检查决定是否转发和丢弃输入信息包RPF检查的过程如下: 阅读全文

posted @ 2021-04-28 14:55 hannah_id 阅读(163) 评论(0) 推荐(0)

导航