<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xvrixingkong的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/xvrixingkong</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; xvrixingkong]]></copyright><item><title><![CDATA[软考高级+系统架构设计师教程+第二版新版+电子版pdf]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/133248003</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/133248003</guid><author>xvrixingkong</author><pubDate>Sun, 24 Sep 2023 18:56:06 +0800</pubDate><description><![CDATA[上篇为综合知识，介绍了系统架构设计师应熟练掌握的基本知识，主要包括绪论、计算机系统、信息系统、信息安全技术、软件工程、数据库设计、系统架构设计、系统质量属性与架构评估、软件可靠性、软件架构的演化和维护、未来信息综合技术等诸多基本知识和方法。下篇为案例分析，分门别类地详细介绍了系统架构设计的相关理论、方法和案例分析，主要包括信息系统架构、层次式架构、云原生架构、面向服务架构、嵌入式系统架构、通信系统架构、安全架构和大数据架构等诸多设计理论和案例。第16章 嵌入式系统架构设计理论与实践。]]></description><category></category></item><item><title><![CDATA[【Ubuntu git clone命令报错】fatal: unable to access ‘https://github.com/XXX‘: gnutls_handshake() failed:]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/129605071</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/129605071</guid><author>xvrixingkong</author><pubDate>Fri, 17 Mar 2023 00:34:59 +0800</pubDate><description><![CDATA[Ubuntu git clone 命令报错：
Cloning into 'XXX'...
fatal: unable to access 'https://github.com/XXX': gnutls_handshake() failed:The TLS connection was non-properly terminated.]]></description><category></category></item><item><title><![CDATA[Ubuntu中安装软件时出现报错Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend)……]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/129604200</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/129604200</guid><author>xvrixingkong</author><pubDate>Fri, 17 Mar 2023 00:10:32 +0800</pubDate><description><![CDATA[Ubuntu中安装软件时出现报错Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend)……]]></description><category></category></item><item><title><![CDATA[C++中的命名空间]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/129393362</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/129393362</guid><author>xvrixingkong</author><pubDate>Tue, 07 Mar 2023 22:41:54 +0800</pubDate><description><![CDATA[C++中命名空间的概念]]></description><category></category></item><item><title><![CDATA[C/C++中的“static”]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/129392991</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/129392991</guid><author>xvrixingkong</author><pubDate>Tue, 07 Mar 2023 22:13:59 +0800</pubDate><description><![CDATA[static修饰全局变量、函数和局部变量时的相关含义]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 396. Rotate Function + 暴力 + 错位相减]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/116208849</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/116208849</guid><author>xvrixingkong</author><pubDate>Tue, 27 Apr 2021 20:14:08 +0800</pubDate><description><![CDATA[396. Rotate Function
暴力 时间复杂度O(n*n)
按照计算规则，一步一步来
class Solution:
    def maxRotateFunction(self, nums: List[int]) -&gt; int:
        size, res = len(nums), -float('inf')
        for i in range(size):
            tmp = 0
            for j in range(size):
  ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3]395. Longest Substring with At Least K Repeating Characters +递归]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/116169669</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/116169669</guid><author>xvrixingkong</author><pubDate>Mon, 26 Apr 2021 19:44:51 +0800</pubDate><description><![CDATA[395. Longest Substring with At Least K Repeating Characters
class Solution:
    def longestSubstring(self, s: str, k: int) -&gt; int:
        if len(s) &lt; k:
            return 0
        for c in set(s):
            # 若某个字符c的个数大于0且小于k,那么包含它的子串必然不符合要求，
  ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 394. Decode String + 递归]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/116023472</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/116023472</guid><author>xvrixingkong</author><pubDate>Thu, 22 Apr 2021 17:42:39 +0800</pubDate><description><![CDATA[394. Decode String
class Solution:
    def decodeString(self, s: str) -&gt; str:
        table = "0123456789"
        size = len(s)
        index = 0
        res = ""
        while index &lt; size:
            if s[index] in table:   # 若遇到数字即进入解码
         ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 393. UTF-8 Validation +位处理]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/115979429</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/115979429</guid><author>xvrixingkong</author><pubDate>Wed, 21 Apr 2021 21:15:42 +0800</pubDate><description><![CDATA[393. UTF-8 Validation
symple &amp; 128 == 0 表示symple必为 0xxx xxxx
(symple &amp; 128 == 128) and (symple &amp; 64 == 0) 表示symple必为 10xx xxxx
(symple &amp; 192 == 192) and (symple &amp; 32 == 0) 表示symple必为 110x xxxx
(symple &amp; 224 == 224) and (symple &amp;]]></description><category></category></item><item><title><![CDATA[[LeetCode Pythons] 388. Longest Absolute File Path+O(n)]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/115638377</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/115638377</guid><author>xvrixingkong</author><pubDate>Mon, 12 Apr 2021 20:09:30 +0800</pubDate><description><![CDATA[#388. Longest Absolute File Path
算法搬运工
解题思路
使用一个数组prefixSum,保存遍历过程中,已知层级的前缀字符串数。
如前缀为aaa/bb/cc/
则prefixSum = [0, 4, 7, 10], 即aaa/的长度,aaa/bb/的长度，aaa/bb/cc/的长度。
在遍历每行数据时：
保存当前行的层级level，也就是\t的数量。

如果当前行为文件: 我们只要将当前文件名的长度，加上之前层级的字符串长度就行。
如果当前行为文件夹: 如果层级比数组长度大，]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 384. Shuffle an Array +洗牌算法]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/115439434</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/115439434</guid><author>xvrixingkong</author><pubDate>Mon, 05 Apr 2021 11:03:56 +0800</pubDate><description><![CDATA[384. Shuffle an Array
暴力重排
class Solution:

    def __init__(self, nums: List[int]):
        self.nums = nums[:]
        self.tmp = nums[:]

    def reset(self) -&gt; List[int]:
        """
        Resets the array to its original configuration and return ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 382. Linked List Random Node + 水塘抽样 +大数据流，等概率抽样]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/115438366</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/115438366</guid><author>xvrixingkong</author><pubDate>Mon, 05 Apr 2021 09:56:41 +0800</pubDate><description><![CDATA[382. Linked List Random Node
class Solution:
    def __init__(self, head: ListNode):
        self.head = head
    def getRandom(self) -&gt; int:
        count = 0
        reserve = self.head.val
        cur = self.head
        while cur:
            count ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3]334. Increasing Triplet Subsequence + 暴力搜索 + 双指针]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/113741844</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/113741844</guid><author>xvrixingkong</author><pubDate>Sun, 07 Feb 2021 15:26:20 +0800</pubDate><description><![CDATA[334. Increasing Triplet Subsequence
暴力搜索
class Solution:
    def increasingTriplet(self, nums: List[int]) -&gt; bool:
        size = len(nums)
        if size &lt; 3:
            return False
        for i in range(size-2):
            for j in range(i+1, ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 318. Maximum Product of Word Lengths + 位掩码]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/113740771</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/113740771</guid><author>xvrixingkong</author><pubDate>Sun, 07 Feb 2021 14:40:50 +0800</pubDate><description><![CDATA[318. Maximum Product of Word Lengths
from collections import defaultdict

class Solution:
    def maxProduct(self, words: List[str]) -&gt; int:
        hashmap = defaultdict(int)
        bit_number = lambda ch: ord(ch) - ord('a')

        for word in words]]></description><category></category></item><item><title><![CDATA[332. Reconstruct Itinerary +欧拉通路]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/113613983</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/113613983</guid><author>xvrixingkong</author><pubDate>Wed, 03 Feb 2021 16:48:07 +0800</pubDate><description><![CDATA[332. Reconstruct Itinerary
class Solution:
    def findItinerary(self, tickets: List[List[str]]) -&gt; List[str]:
        def dfs(curr: str):
            while vec[curr]:
                tmp = heapq.heappop(vec[curr])
                dfs(tmp)
            s]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 260. Single Number III +集合]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/112908936</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/112908936</guid><author>xvrixingkong</author><pubDate>Wed, 20 Jan 2021 19:34:41 +0800</pubDate><description><![CDATA[260. Single Number III
集合的删除、添加、查找的时间复杂度均为O(1)
Time:O(n);  Space: O(3)
class Solution:
    def singleNumber(self, nums: List[int]) -&gt; List[int]:
        res = set()
        for num in nums:
            if num in res:
                res.remove(num)
    ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3]274/275. H-Index I/II]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/112908746</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/112908746</guid><author>xvrixingkong</author><pubDate>Wed, 20 Jan 2021 19:24:07 +0800</pubDate><description><![CDATA[275. H-Index II
O(n)
class Solution:
    def hIndex(self, citations: List[int]) -&gt; int:
        res = 0
        for index in range(len(citations)):
            if citations[len(citations)-1-index] &gt;= index + 1:
                res = index + 1
       ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 240. Search a 2D Matrix II +二分查找]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/112714682</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/112714682</guid><author>xvrixingkong</author><pubDate>Sat, 16 Jan 2021 16:40:39 +0800</pubDate><description><![CDATA[240. Search a 2D Matrix II
二维版二分查找
class Solution:
    def searchMatrix(self, matrix: List[List[int]], target: int) -&gt; bool:
        m, n = len(matrix), len(matrix[0])

        def helper(rlo, rhi, clo, chi):
            if rlo &gt;= rhi or clo &gt;= ch]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3]222. Count Complete Tree Nodes +完全二叉树/满二叉树]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/112545668</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/112545668</guid><author>xvrixingkong</author><pubDate>Tue, 12 Jan 2021 19:47:06 +0800</pubDate><description><![CDATA[222. Count Complete Tree Nodes
满二叉树、完全二叉树、平衡二叉树、最优二叉树
class Solution:
    def countNodes(self, root: TreeNode) -&gt; int:
        def getheight(root):    # 得到完全二叉树的高度
            height = 0
            while root:
                height += 1
              ]]></description><category></category></item><item><title><![CDATA[[LeetCode Python3] 217/219/220. Contains Duplicate I/II/III]]></title><link>https://blog.youkuaiyun.com/xvrixingkong/article/details/112495123</link><guid>https://blog.youkuaiyun.com/xvrixingkong/article/details/112495123</guid><author>xvrixingkong</author><pubDate>Mon, 11 Jan 2021 21:33:09 +0800</pubDate><description><![CDATA[217. Contains Duplicate
solution1:
统计每个元素出现的个数，当个数超过1时说明重复
class Solution:
    def containsDuplicate(self, nums: List[int]) -&gt; bool:
        dic = collections.defaultdict(int)
        for num in nums:
            dic[num] += 1
        for key, value in ]]></description><category></category></item></channel></rss>