原创 leetCode 104. Maximum Depth of Binary Tree

    題目鏈接:https://leetcode.com/problems/maximum-depth-of-binary-tree/     題目內容: Given a binary tree, find its maximum d

原创 leetCode 258. Add Digits

    題目鏈接:https://leetcode.com/problems/add-digits/     題目內容: Given a non-negative integer num, repeatedly add all its

原创 leetCode 171. Excel Sheet Column Number

    題目鏈接:https://leetcode.com/problems/excel-sheet-column-number/     題目內容: Related to question Excel Sheet Column Ti

原创 mysql命令更改表結構:添加、刪除、修改字段、調整字段順序

原文出處:http://www.phpernote.com/mysql/1120.html 常用的通過mysql命令來更改表結構的一些sql語句,包括添加、刪除、修改字段、調整字段順序。 添加字段: alter table `u

原创 LeetCode 13. Roman to Integer

    題目鏈接:https://leetcode.com/problems/roman-to-integer/     題目內容: Given a roman numeral, convert it to an integer.

原创 VMware虛擬機NAT模式的具體配置

NAT模式的具體配置 NAT方式:虛擬機可以上外網,可以訪問宿主計算機所在網絡的其他計算機(反之不行)。 1.1.1.        查看虛擬機的網絡參數 1)      打開虛擬機,選擇菜單“編輯”》“編輯虛擬網絡”,如下圖: 

原创 字符串的組合

        題目:輸入一個字符串,輸出該字符串中字符的所有組合。例如,如果輸入abc,則其組合有a,b,c,ab,ac,bc,abc。其中,ab和ba算是同一種組合。(原題出處)         題意的分析在原題中已經有了,即用遞歸的

原创 LeetCode 12. Integer to Roman

    題目鏈接:https://leetcode.com/problems/integer-to-roman/     題目內容: Given an integer, convert it to a roman numeral. I

原创 複雜鏈表的複製

        原題來自書籍《劍指offer》,這是作者的該題的博客地址。         關於該題的題意就不再敖述,其大意有點類似C++中的深複製,需要另外的空間來保存複製的內容,而不是簡單的將指針指向同一份內容。題目的分析在原博客中已

原创 LeetCode 13. Roman to Integer

    題目鏈接:https://leetcode.com/problems/roman-to-integer/     題目內容: Given a roman numeral, convert it to an integer.

原创 LeetCode 12. Integer to Roman

    題目鏈接:https://leetcode.com/problems/integer-to-roman/     題目內容: Given an integer, convert it to a roman numeral. I

原创 字符串的組合

        題目:輸入一個字符串,輸出該字符串中字符的所有組合。例如,如果輸入abc,則其組合有a,b,c,ab,ac,bc,abc。其中,ab和ba算是同一種組合。(原題出處)         題意的分析在原題中已經有了,即用遞歸的

原创 複雜鏈表的複製

        原題來自書籍《劍指offer》,這是作者的該題的博客地址。         關於該題的題意就不再敖述,其大意有點類似C++中的深複製,需要另外的空間來保存複製的內容,而不是簡單的將指針指向同一份內容。題目的分析在原博客中已

原创 二、mysqldump使用簡介

     mysqldump是一種mysql邏輯備份的工具,備份出來的文件可以是CSV格式,文本格式或者xml格式,導出指定數據庫的內容爲一系列可執行的建表,插入數據等sql語句的集合。      mysqldump工具使用時有豐富的可選

原创 VMware虛擬機NAT模式的具體配置

NAT模式的具體配置 NAT方式:虛擬機可以上外網,可以訪問宿主計算機所在網絡的其他計算機(反之不行)。 1.1.1.        查看虛擬機的網絡參數 1)      打開虛擬機,選擇菜單“編輯”》“編輯虛擬網絡”,如下圖: