原创 [lydstar]去哪喫

去哪喫真是個糾結的問題,交個計算機來決定吧: var num=Math.floor(Math.random()*3); if(num==0){console.log("大拇指")} else if(num==1){console.log

原创 [leetcode] Transpose File

NF:列數(number of fields) NR:行數 (number of records) language:shell awk '{for(i=1;i<=NF;i++){a[NR,i]=$i}} END{for(j=

原创 Git non fast foward

1、現在本地pull 2、merge 3、remote->push

原创 [lydstar]專利整理總結

T老闆讓整理國外的一些專利,包括專利名稱、專利號、申請日期、摘要等信息,還需要進行簡單分類統計,順便記錄一下操作流程留作後用。 目標鏈接: http://www.freepatentsonline.com/result.html?p

原创 POJ2676

#include<iostream> #include<vector> #include<algorithm> #include<cstring> using namespace std; short rowFlags[9][1

原创 [leetcode]Maximum Subarray

SubArray是連續的 class Solution {//分治,時間複雜度O(nlogn) public: int maxSubArray(vector<int>& nums) { int n=nums

原创 ER 圖

Entity–relationship model Two related entities shown using Crow’s Foot notation. In this example, an optional rel

原创 POJ1164

#include<iostream> #include<stack> #include<cstring> using namespace std; int R,C;//行列數 int rooms[60][60]; int col

原创 [leetcode]Remove Linked List Elements

(https://leetcode.com/problems/remove-linked-list-elements/%20https://leetcode.com/problems/remove-linked-list-elem

原创 [lydstar]建站筆記

原個人網站lydstar.com不再維護,現把上面的一些文章轉到csdn上來。 以前一直用免費的,一是感覺網站主題可選的太少,沒有自己喜歡的;二是空間容量太小,而且服務器太不穩定,經常訪問不到,很鬱悶。故重新申請域名、購買空間來建設新

原创 [leetcode]Subsets

Subsets 無重複元素 class Solution { public: vector<vector<int> > subsets(vector<int> &S) { vector<vector<int>>

原创 [leetcode]Delete Duplicate Emails

language:mysql delete from Person where Id not in (select * from (select min(Id) from Person group by Email) t); 附

原创 [lydstar]android開發中配置github使用的.gitignore

#忽略gitignore文件 .gitignore # Java class files *.class # Mobile Tools for Java (J2ME) .mtj.tmp/ #Package Files# *.j

原创 [lydstar]去哪吃

去哪吃真是個糾結的問題,交個計算機來決定吧: var num=Math.floor(Math.random()*3); if(num==0){console.log("大拇指")} else if(num==1){console.log

原创 jQuery 學習筆記二

FE: 使用jQuery ajax 發送request。 //獲取手機短信驗證碼 $(".sendMobileCode").click(function(){ var mobile = $('#regName').va