原创 LeetCode 224. Basic Calculator 【Stack】困難

Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and c

原创 中國大學MOOC-陳越、何欽銘-數據結構-2019夏

文章目錄----------------------函數題 (共 65 分) ----------------------------01-複雜度1 最大子列和問題02-線性結構1 兩個有序鏈表序列的合併04-樹7 二叉搜索樹的操

原创 LeetCode C++ 449. Serialize and Deserialize BST【Binary-search Tree】中等

Serialization is the process of converting a data structure or object into a sequence of bits so that it can be sto

原创 LeetCode C++ 537. Complex Number Multiplication【Math】中等

Given two strings representing two complex numbers. You need to return a string representing their multiplication.

原创 LeetCode C++ 125. Valid Palindrome【String】簡單

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note:

原创 LeetCode C++ 297. Serialize and Deserialize Binary Tree【Tree】困難

Serialization is the process of converting a data structure or object into a sequence of bits so that it can be sto

原创 【微機原理與接口技術】學習筆記5 I/O接口和並行接口芯片8255A

文章目錄6.1 I/O接口6.1.1 I/O接口的功能1. 採用I/O接口的必要性2. 接口的功能6.1.2 I/O端口及其尋址方式1. I/O端口2. I/O端口的尋址方法(1) 存儲器映象尋址方式(Memory Mapp

原创 【微機原理與接口技術】學習筆記1 微型計算機的結構系統和發展概況

文章目錄一、數的表示方法1.1 進位計數制(略)1.2 進制編碼(略)1.3 帶符號數的表示方法1.3.1 符號表示法1.3.2 原碼、反碼和補碼(1) 原碼(1) 反碼(3) 補碼1.4 實數的表示(略)二、計算機的基本結構2.

原创 【微機原理與接口技術】學習筆記2 8086CPU

文章目錄一、8086CPU內部結構及工作過程1.1 8086 CPU內部結構及工作過程1.2 8086 CPU內部寄存器1. 數據寄存器2. 地址指針和變址寄存器3. 段寄存器4. 指令指針IP (Instruction Poi

原创 【算法學習】位操作1

文章目錄1. 無算術運算符的加法 Add two numbers without using arithmetic operators(1) 題意(2) 思路(3) 模板代碼(3) 習題 位操作有太多的神奇寫法,這裏總結一部分。

原创 POJ 1001 A+B Problem 水題

Description Calculate a+b. Input Two integer a,b (0<=a,b<=10) Output Output a+b. Sample Input 1 2 Sample Output 3

原创 LeetCode C++ 38. Count and Say【String】簡單

The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3

原创 洛谷 P3958 奶酪【並查集】

題目描述 現有一塊大奶酪,它的高度爲 hhh,它的長度和寬度我們可以認爲是無限大的,奶酪 中間有許多 半徑相同 的球形空洞。我們可以在這塊奶酪中建立空間座標系,在座標系中, 奶酪的下表面爲 z=0z=0z=0 ,奶酪的上表面爲 z

原创 LeetCode C++ 9. Palindrome Number 簡單

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward

原创 POJ 1611 The Suspects【並查集】

Description Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as