原创 LeetCode C++ 268. Missing Number【位操作/數學】簡單

Given an array containing n distinct numbers taken from 0, 1, 2, ..., n , find the one that is missing from the arr

原创 LeetCode C++ 11. Container With Most Water【雙指針】中等

Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lin

原创 LeetCode C++ 劍指 Offer 09. 用兩個棧實現隊列【棧】

用兩個棧實現一個隊列。隊列的聲明如下,請實現它的兩個函數 appendTail 和 deleteHead ,分別完成在隊列尾部插入整數和在隊列頭部刪除整數的功能。(若隊列中沒有元素,deleteHead 操作返回 -1 ) 示例

原创 LeetCode C++ 136. Single Number【位操作】簡單

Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your a

原创 LeetCode C++ 1186. Maximum Subarray Sum with One Deletion【動態規劃】中等

Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one

原创 LeetCode C++ 53. Maximum Subarray【動態規劃】簡單

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest su

原创 LeetCode C++ 64. Minimum Path Sum【動態規劃】中等

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the

原创 LeetCode C++ 239. Sliding Window Maximum【Monotonic Queue】困難

Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the ver

原创 LeetCode C++ 面試題 02.01. Remove Duplicate Node LCCI【Linked List】簡單

Write code to remove duplicates from an unsorted linked list. Example1: Input: [1, 2, 3, 3, 2, 1] Output: [1, 2,

原创 【微機原理與接口技術】學習筆記8 串行通信

文章目錄8.1 串行通信的基本概念和EIA RS-232C串行口8.1.1 串行/並行通信比較8.1.2 串行通信基本概念1. 串行通信定義和特點2. 串行通信的數據傳送方式3. 串行通信的兩種基本工作方式(1) 異步方式通信AS

原创 東方Project題目 1975 紅魔館爆炸了

這是湖南科技大學OJ中的一道題目,因爲在刷貼吧的時候看到了,所以就做了。 題目描述 紅魔館最近迎來了兩塊隕石,由於防範不到位,第一塊隕石從天而降,紅魔館爆炸了。館主蕾米莉亞有着強大的力量,她決定阻止第二塊隕石,方法是將隕石打爆,

原创 【PAT乙級】B1001-B1095刷題記錄

文章目錄PTA題目中國大學MOOC-陳越、何欽銘-數據結構-起步能力自測題自測-1 打印沙漏 (20 分)自測-2 素數對猜想 (20 分)自測-3 數組元素循環右移問題 (20 分)自測-4 Have Fun with Numb

原创 【微機原理與接口技術】學習筆記7 中斷和可編程中斷控制器8259A

文章目錄8.1 中斷8.1.1 中斷概念和分類1.中斷的定義和功能2.中斷源和中斷分類1)外部中斷2)內部中斷3. 中斷向量表4.中斷優先級和中斷嵌套(1) 中斷優先級(2) 中斷嵌套8.1.2 中斷的響應與處理過程1.中斷

原创 LeetCode C++ 10. Regular Expression Matching【String】困難

Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. '.

原创 【微機原理與接口技術】學習筆記9 DMA控制器8237A

文章目錄9.1 8237A 的組成與工作原理9.1.1 DMA傳送9.1.2 8237A的內部結構9.1.3 8237A的引腳功能9.1.4 8237A的內部寄存器9.2 8237A的時序9.3 8237A的編程和應用