原创 個性化修改U盤圖標

此文章適用於win7及win10的系統 需要準備的材料: 一張圖片(.jpg, .png等都行)、正常的網絡連接、U盤 一、 將圖片轉化爲.ico格式 1. 在瀏覽器輸入網址http://www.bitbug.net/, 進入比特蟲i

原创 判斷這兩個數組中是否有相同的數(C++)

判斷這兩個數組中是否有相同的數、 Description 給定兩個整數數組,判斷這兩個數組中是否有相同的數。 Input 第一行是一個正整數T,表示測試數據組數。 每組測試數據中,第一行有兩個正整數n,m,分別

原创 LeetCode第五題(Longest Palindromic Substring)

Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that t

原创 LeetCode第四題(Median of Two Sorted Arrays)

Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the

原创 Git倉庫克隆

設置ssh公鑰 # 這裏點三次回車,默認確認就行了 $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key

原创 LeetCode第二題(Add Two Numbers)

Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are st

原创 html快速參考手冊

轉載自w3school,原文鏈接http://www.w3school.com.cn/html/html_quick.asp HTML 4.01 快速參考 HTML 文檔類型 XHTML 簡介 來自 W3School 的

原创 CentOS7下無法啓動mysql的解決辦法

原文鏈接:點擊打開鏈接 MariaDB數據庫管理系統是MySQL的一個分支,主要由開源社區在維護,採用GPL授權許可。開發這個分支的原因之一是:甲骨文公司收購了MySQL後,有將MySQL閉源的潛在風險,因此社區採用分支的方式來避開

原创 LeetCode第三題(Longest Substring Without Repeating Characters)

Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without re

原创 LeetCode第371題(Sum of Two Integers)

Sum of Two Integers Calculate the sum of two integers a and b, but you are not allowed to use the operator + an

原创 高質量代碼的命名法則

原文鏈接 本文與大家聊一聊編程中非常關鍵的一個點,如何更好的對代碼命名。   一、引言   《代碼整潔之道》這本書提出了一個觀點:代碼質量與其整潔度成正比,乾淨的代碼,既在質量上可靠,也爲後期維護、升級奠定了良好基礎

原创 小明走樓梯——斐波那契數列的變態版變種

小明走樓梯 Description 小明來走樓梯啦! 衆所周知小明有個怪癖,就是上樓梯的時候一步跨的臺階數一定是2的冪。 那麼問題來了,對於一個有n個臺階的樓梯,小明有多少種不同的上樓梯的辦法使得他剛好走完這個樓梯? I

原创 LeetCode第一題(Two Sum)

Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target.

原创 【SQL】GROUP BY語句

本文爲個人學習筆記,材料取自牛客網在線編程 GROUP BY語句通常用於結合sum()函數,根據一個或多個列對結果集進行分組。 例題: 題目描述 按照dept_no進行彙總,屬於同一個部門的emp_no按照逗號進行連接,結果給

原创 【SQL】ORDER BY語句及substr函數

本文爲個人學習筆記,材料取自牛客網在線編程 ORDER BY語句用於根據指定列(字段)對結果集進行排序,默認爲升序,使用DESC關鍵字可以改爲降序。 例題: 題目描述 獲取Employees中的first_name,查詢按照f