原创 Linux內核分析——扒開系統調用的三層皮(上)

張瑜 原創作品轉載請註明出處 《Linux內核分析》(http://mooc.study.163.com/course/USTC-1000029000%20MOOC%E8%AF%BE%E7%A8%8B) 一、原理總結   本週內容主要包

原创 超平面

什麼是超平面 我們最常見的平面概念是在三維空間中定義的: Ax+By+Cz+D=0 它由兩個性質定義: 方程是線性的: 是空間點的各分量的線性組合 方程數量爲1 若拋卻維度等於3的限制, 就得到了超平面的定義. 方程數量爲1,

原创 LeetCode No.154 Find Minimum in Rotated Sorted Array II

/** Follow up for "Find Minimum in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-ti

原创 軟件工程(C編碼實踐篇)學習總結

張瑜 《軟件工程(C編碼實踐篇)》MOOC課程 http://mooc.study.163.com/course/USTC-1000002006 軟件工程的線上課程是圍繞着一個menu程序展開的,在逐步實施該項目的過程中,老師順帶

原创 Linux內核分析——扒開系統調用的三層皮(下)

張瑜 《Linux內核分析》MOOC課程 http://mooc.study.163.com/course/USTC-1000029000 一、實驗內容 1. 通過內核的方式使用系統調用 上週是從用戶態來看系統調用,這周是從內核方面來看這

原创 LeetCode No.56 MergeIntervals

/** Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], r

原创 windows下pip install 出現報asciii碼錯誤的問題

環境: 系統版本:win10 x64 Python版本:2.7.13 pip版本:9.0.1 錯誤: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in posit

原创 神經網絡實現手寫字符識別系統

一:內容介紹 1.1 課程來源 本項目核心部分來自《500 lines or less》項目,作者是來自 Mozilla 的工程師 Marina Samuel,這是她的個人主頁:http://www.marinasamuel.com/ 。

原创 LeetCode No.65 ValidNumber

/** Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2

原创 Linux內核分析——分析Linux內核創建一個新進程的過程

張瑜 原創作品轉載請註明出處 《Linux內核分析》MOOC課程http://mooc.study.163.com/course/USTC-1000029000 理論知識 進程描述符(task_struct) 用來描述進程的數據結

原创 Linux內核分析——Linux內核如何裝載和啓動一個可執行程序

張瑜 原創作品轉載請註明出處 《Linux內核分析》MOOC課程http://mooc.study.163.com/course/USTC-1000029000 當我們在用戶空間調用execve(),使用一個軟件中斷調用系統調用的過程。

原创 LeetCode No.153 Find Minimum in Rotated Sorted Array

/** Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6

原创 LeetCode No.70 ClimbingStairs

Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 簡單題目,相當於fibonacci數列問題

原创 LeetCode No.240 Search a 2D Matrix II

/** Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties

原创 Linux內核分析——進程的切換和系統的一般執行過程

張瑜 《Linux內核分析》MOOC課程 http://mooc.study.163.com/course/USTC-1000029000 一、理解Linux系統中進程調度的時機: 中斷處理過程(包括時鐘中斷、I/O中斷、系統調用和異常)