原创 LeetCode 961. N-Repeated Element in Size 2N Array

In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return th

原创 語法設計——基於LL(1)文法的預測分析表法

實驗二、語法設計——基於LL(1)文法的預測分析表法 一、實驗目的 通過實驗教學,加深學生對所學的關於編譯的理論知識的理解,增強學生對所學知識的綜合應用能力,並通過實踐達到對所學的知識進行驗證。通過對基於LL(1)文法的預測分析表法DFA模

原创 LeetCode 965. Univalued Binary Tree

A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is un

原创 簡單的詞法設計——DFA模擬程序

實驗一、簡單的詞法設計——DFA模擬程序 一、實驗目的 通過實驗教學,加深學生對所學的關於編譯的理論知識的理解,增強學生對所學知識的綜合應用能力,並通過實踐達到對所學的知識進行驗證。通過對 DFA 模擬程序實驗,使學生掌握詞法分析的實現技術

原创 LeetCode 832. Flipping an Image

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip

原创 寒潮來了,春天還會遠嘛?

互聯網的高速發展,牽動着每個人的日常生活,我們的衣食住行都因互聯網而發展而不斷地變化着。然而中國各大互聯網公司巨頭紛紛發微博稱通過裁員、縮減招聘,調整人才發展策略,這意味着大半的低級碼農會在這股浪潮中喪失原本屬於他們的一席之地,互聯網的寒潮

原创 LeetCode 905. Sort Array By Parity

905. Sort Array By Parity Given an array A of non-negative integers, return an array consisting of all the even elements

原创 LeetCode 804. Unique Morse Code Words

804. Unique Morse Code Words International Morse Code defines a standard encoding where each letter is mapped to a serie

原创 LeetCode 709. To Lower Case

709. To Lower Case Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowe

原创 LeetCode 929. Unique Email Addresses

929. Unique Email Addresses Every email consists of a local name and a domain name, separated by the @ sign. For example

原创 LeetCode 771. Jewels and Stones

771. Jewels and Stones You're given strings J representing the types of stones that are jewels, and Srepresenting the st

原创 一文讓你完全弄懂Stegosaurus

國內關於 Stegosaurus 的介紹少之又少,一般只是單純的工具使用的講解之類的,並且本人在學習過程中也是遇到了很多的問題,基於此種情況下寫下此文,也是爲我逝去的青春時光留個念想吧~ Stegosaurus是什麼? 在瞭解 Stegos

原创 利用 John the Ripper 破解用戶登錄密碼

一、什麼是 John the Ripper ? 看到這個標題,想必大家都很好奇,John the Ripper 是個什麼東西呢?如果直譯其名字的話就是: John 的撕裂者(工具)。 相比大家都會覺得摸不着頭腦,撕裂者是啥玩意啊? 事實上,

原创 【親測有效】Kali Linux無法安裝網易雲音樂的解決方案

問題描述 由於 Kali Linux 的內核是基於 Debian 的,我們在安裝網易雲音樂的時候更偏向於選擇安裝網易雲音樂 v1.1.0 deepin15(64位) 的包,可是我發現在安裝過程中,無法定位 libqcef1 軟件包,對於很多

原创 【親測有效】運行docker ps 出現Got permission denied問題的解決方案

問題描述 今天在運行 docker ps 命令的時候出現如下問題: Got permission denied while trying to connect to the Docker daemon socket at unix:///v