原创 常用數據類型對應字節數 32/64

常用數據類型對應字節數  可用如sizeof(char),sizeof(char*)等得出  32位編譯器:       char :1個字節      char*(即指針變量): 4個字節(32位的尋址空間是2^32, 即32個b

原创 Hust oj 1160 吸血鬼(並查集)

吸血鬼 Time Limit: 1000 MS Memory Limit: 65536 K Total Submit: 364(173 users) Total Accepted: 213(166 users) Rating: Spe

原创 LeetCode oj 292. Nim Game(尼姆博奕)

292. Nim Game   Question Editorial Solution  My Submissions Total Accepted: 100010Total Submissions: 184472Di

原创 LeetCode oj 371. Sum of Two Integers(位運算)

371. Sum of Two Integers   Question Editorial Solution  My Submissions Total Accepted: 37210Total Submissions

原创 Hust oj 1429 凸多邊形(叉乘+二分)

凸多邊形 Time Limit: 2000 MS Memory Limit: 65536 K Total Submit: 276(61 users) Total Accepted: 101(52 users) Rating:  Spe

原创 Pku oj 1207 The 3n + 1 problem(模擬)

The 3n + 1 problem Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 56636   Accepted: 18061 Description

原创 LeetCode oj 389. Find the Difference(Hash)

389. Find the Difference   Question Editorial Solution  My Submissions Total Accepted: 22851Total Submissions

原创 LeetCode oj 404. Sum of Left Leaves (DFS||BFS)

404. Sum of Left Leaves   Question Editorial Solution  My Submissions Total Accepted: 8223Total Submissions: 

原创 LeetCode oj 226. Invert Binary Tree (DFS||BFS)

226. Invert Binary Tree   Question Editorial Solution  My Submissions Total Accepted: 124813Total Submissions

原创 LeetCode oj 260. Single Number III (位運算)

260. Single Number III   Question Editorial Solution  My Submissions Total Accepted: 49443Total Submissions: 

原创 LeetCode oj 104. Maximum Depth of Binary Tree(DFS||BFS)

104. Maximum Depth of Binary Tree   Question Editorial Solution  My Submissions Total Accepted: 179819Total S

原创 LeetCode oj 167. Two Sum II - Input array is sorted (雙指針)

167. Two Sum II - Input array is sorted   Question Editorial Solution  My Submissions Total Accepted: 29576To

原创 LeetCode oj 283. Move Zeroes (選擇排序)

283. Move Zeroes   Question Editorial Solution  My Submissions Total Accepted: 122129Total Submissions: 26284

原创 Hust oj 1046 Balls Collision(水題)

Balls Collision Time Limit: 1000 MS Memory Limit: 65536 K Total Submit: 71(51 users) Total Accepted: 49(45 users) Rati

原创 MVC框架

MVC框架   MVC全名是Model View Controller,是模型(model)-視圖(view)-控制器(controller)的縮寫,一種軟件設計典範,用一種業務邏輯、數據、界面顯示分離的方法組織代碼,將業務邏輯聚集