原创 LeetCode 53. Maximum Subarray

題目描述 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For exam

原创 LeetCode 27. Remove Element

題目描述 Given an array and a value, remove all instances of that value in-place and return the new length. Do not alloca

原创 ubuntu 下Linpack安裝,MPI+GOTOBLAS2

LINPACK是線性系統軟件包(Linear system package) 的縮寫, 主要開始於 1974 年 4 月, 美國 Argonne國家實驗室應用數學所主任 Jim Pool, 在一系列非正式的討論會中評估,建立一套專門解線

原创 LeetCode 26. Remove Duplicates from Sorted Array

題目描述 Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new

原创 LeetCode 35. Search Insert Position

題目描述 Given a sorted array and a target value, return the index if the target is found. If not, return the index where

原创 ssh WARNING: POSSIBLE DNS SPOOFING DETECTED! 問題解決

問題描述 由於我通過ssh指定端口連接服務器時,服務器端口映射的主機已經被我修改啦,原本該端口是映射到A主機,現在被我改爲映射到B主機。於是當我再次連接服務器時,因爲第一次使用ssh連接時,會生成一個認證key值,儲存在客戶端的known

原创 linux用kill()函數殺死由fork()函數產生的子進程

(1)excel()函數使用         當進程調用一種exec函數時,該進程完全由新程序代換,而新程序則從其main函數開始執行。因爲調用exec並不創建新進程,所以前後的進程ID並未改變。exec只是用另一個新程序替換了當前進程的

原创 LeetCode 1.Two Sum

題目描述 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may

原创 Ngrok服務器端配置以及客戶端的使用

Ngrok原理圖解 ngrok服務器端放到服務器上,ngrok客戶端放在向外提供服務的客戶端主機上。當需要服務的用戶端需要請求ngrok客戶端服務時,由於ngrok客戶端服務是在局域網內,如果不通過ngrok做一下內網穿透,用戶端則訪問

原创 frp內網穿透搭建,超級簡單實用

由於前幾天實驗室項目需要,搭建了Ngrok服務器來實現內網主機向外網用戶端提供服務的內網穿透,偶然間遇到了FRP這個工具,感覺frp比ngrok更好用,直接用官網下載相應版本就好,而不用自己編譯,特別方便。下面我將介紹如何通過frp,讓局