原创 C++ string大小寫轉換以及transform,tolower,toupper,用法

C++中沒有提供string類型的大小寫轉換,今天寫了一下,方法很多。 當然可以s[i]+32 or s[i]-32   #include <iostream> #include <string> #include <cctype> #

原创 leetcode238 Product of Array Except Self

238. Product of Array Except Self Total Accepted: 36710 Total Submissions: 87934 Difficulty: Medium Given an arr

原创 leetcode100 Same Tree

100. Same Tree Total Accepted: 114518 Total Submissions: 267060 Difficulty: Easy Given two binary trees, write a

原创 leetcode226 Invert Binary Tree

226. Invert Binary Tree Total Accepted: 73962 Total Submissions: 167537 Difficulty: Easy Invert a binary tre

原创 codeblocks快捷鍵(轉)

==日常編輯== • 按住Ctrl滾滾輪,代碼的字體會隨你心意變大變小。 • 在編輯區按住右鍵可拖動代碼,省去拉(尤其是橫向)滾動條之麻煩;相關設置:Mouse Drag Scrolling。 • Ctrl+D可複製當前行或選中塊。 •

原创 hihocoder1040 矩形判斷

#1040 : 矩形判斷 時間限制:1000ms 單點時限:1000ms 內存限制:256MB 描述 給出平面上4條線段,判斷這4條線段是否恰好圍成一個面積大於0的矩形。 輸入 輸入第一行是一個整數T(1<=T<=100)

原创 hdu1143 Tri Tiling

Tri Tiling Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 30

原创 hdu5616 Jam's balance

Jam's balance Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s):

原创 leetcode171 Excel Sheet Column Number

171. Excel Sheet Column Number Total Accepted: 68083 Total Submissions: 167730 Difficulty: Easy Related to questi

原创 leetcode122 Best Time to Buy and Sell Stock II

122. Best Time to Buy and Sell Stock II Total Accepted: 79414 Total Submissions: 190920 Difficulty: Medium Say y

原创 hdu2095 find your present(2)

find your present (2) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submis

原创 hdu2084

數塔 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 31867    A

原创 hdu2068 RPG的錯排

RPG的錯排 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9816   

原创 leetcode104 Maximum Depth of Binary Tree

104. Maximum Depth of Binary Tree Total Accepted: 126996 Total Submissions: 268431 Difficulty: Easy Given a bina

原创 leetcode283 Move Zeroes

283. Move Zeroes Total Accepted: 61066 Total Submissions: 140284 Difficulty: Easy Given an array nums, write a f