原创 LeeCode-53. Maximum Subarray
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum
原创 LeeCode-70 爬樓梯
public class Solution { public int climbStairs(int n) { if (n == 1) { return 1; }
原创 MySql 沒刪乾淨時重裝MySql
今天不小心把我D盤的tool文件夾裏的文件全刪光了,哭死,之前下載的MySQL也未倖免,但是並沒有刪乾淨,所有重裝MySQL時會顯示該服務已存在,於是我先嚐試完全刪除MySQL再重裝 刪除MySQL 1.怎麼看MySQL有沒有刪乾淨呢 運
原创 免安裝版Mysql 調試總結
1.解壓後在根目錄新建my.ini文件,複製以下代碼 [mysqld] basedir ="D:\\tools\mysql-8.0.19-winx64" \\修改成自己的安裝目錄 datadir ="D:\\tools\mysql-8.0
原创 LeetCode-28 實現strStr() KMP算法
class Solution { public int strStr(String haystack, String needle) { if(needle.equals("")) { r
原创 輸入n,輸出對應的邊長爲n的空心正六邊形。 爲方便看圖,樣例中點 '.' 表示空格,打印圖形時請打印空格而非小圓點。
#include<iostream> using namespace std; int main(){int n,i,j,t;while(cin>>n){for(i=0;i<n;i++)cout<<" "