原创 Unbuntu下修復Windows 10引導

Unbuntu下修復Windows 10引導 今天裝ubuntu 16和windows 10雙系統,Windows 10下裝Ubuntu ,在Ubuntu 的分區情況:“/”:15G、“/boot”:2G、“/home”:24G、

原创 apt-get update 出現GPG錯誤解決方法

錯誤詳情 輸入apt-get update之後報的錯 W: GPG 錯誤:http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease: 由於沒有公鑰

原创 VirtualBox安裝Android x86虛擬機

說明:這次項目需要用到安卓虛擬機,所以就百度了一下教程,發現使用VirtualBox安裝Android x86的教程很多 我自己也就是抱着記錄一下的心情來寫下安裝過程,畢竟也是搞了一個白天的成果 首先,需要我們需要兩個軟件,Virtua

原创 二叉樹搜索樹--leetcode

二叉搜索樹定義 Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less >than th

原创 sprintf函數使用詳解

tips: 1.函數包含在stdio.h文件中,使用#include<stdio.h> 2.函數聲明:int sprintf( char *buffer, const char *format , [argument,...]

原创 正則表達式匹配-leetcode Regular Expression Matching

題目: ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element. The matching should co

原创 【Linux日記】在firefox下配置flash player

1.下載flash player 2.解壓下載文件 命令:tar -zxvf 壓縮文件名 3.sudo cp -r usr/* /usr 4.將libflashplayer.so拷貝到firefox瀏覽器插件目錄下,我的筆

原创 【Linux日記】linux-generic 安裝出現問題 導致 linux-image-generic 等安裝失敗

網上查了一下,據說是內核升級的時候/boot分區空間不足造成的 Linux升級後,內核版本太多,導致空間不足,所以需要卸載版本比較老的內核 卸載方法 1.首先查看自己安裝的內核 使用命令:dpkg –get-selection

原创 記錄很好用的軟件

1.Linux和Windows之間傳輸文件 WinSCP

原创 Git學習筆記

Git是分佈式版本控制系統。 Git的結構和常用的命令如下,如圖所示,在Git的結構中,把系統分爲三個部分:遠程服務器、本地版本庫(Repository)、工作區。 1.工作區就是我們所編輯的的文件區,就是項目源碼文檔。 2.本地版本庫

原创 讀整數--leetcode Integer to English Word

Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than Integer.M

原创 awk命令

概述 awk '{pttern + action}' {filename} parttern表示在AWK總查找的內容,action表示找到內容執時所執行的動作。AWK以文件的一行作爲處理單位。 BEGIN/END BEGIN/END B

原创 Hadoop完全安裝

1.下載和配置JDK 本文的Java環境是jdk-1.8.0 下載包:jdk-8u144-linux-x64.tar.gz tar -xzvf jdk-8u144-linux-x64.tar.gz 設置環境變量(/etc/profil

原创 91. Decode Ways--leetcode

題目 ‘A’ -> 1 ‘B’ -> 2 ‘Z’ -> 26 Given encoded message “12”, it could be decoded as “AB” (1 2) >or “L” (12).

原创 Python 集合set操作

比較 se = {11, 22, 33} be = {22, 55} temp1 = se.difference(be) #找到se中存在,be中不存在的集合,返回新值 print(temp1) #{33, 1