原创 leetcode 371

371. Sum of Two Integers Total Accepted: 15459Total Submissions: 29688Difficulty: Easy Calculate the sum of t

原创 libcurl 使用說明和網頁抓取 linux下的curl編程

1         LibCurl簡介 LibCurl是免費的客戶端URL傳輸庫,支持FTP,FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE ,LDAP等協議,其主頁是htt

原创 leetcode 258

258. Add Digits Total Accepted: 110807Total Submissions: 224904Difficulty: Easy Given a non-negative integer

原创 leetcode 231

231. Power of Two Total Accepted: 86376Total Submissions: 228380Difficulty: Easy Given an integer, write a fu

原创 通過反彙編一個簡單的C程序,分析彙編代碼理解計算機是如何工作的(原創)

首先編寫c程序代碼: main.c int g(int x) {   return x + 16; }   int f(int x) {   return g(x); }   int main(void) {   return f(

原创 leetcode 226. Invert Binary Tree

Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3

原创 leetcode 104. Maximum Depth of Binary Tree

104. Maximum Depth of Binary Tree Total Accepted: 160295Total Submissions: 328352Difficulty: Easy Given a bin

原创 leetcode 283. Move Zeroes

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-

原创 glibc detected

linux c編程錯誤集: 一次在一個函數裏面想累計一個鏈表的長度,在一次重新合併成一個節點,出現瞭如下錯誤。 乍一看,密密麻麻,很恐怖。提示也不夠具體,而且這是使用gcc -g *** 編譯出來的結果,仍然沒有提示 出錯

原创 增加vim y命令的最大複製行數

轉自:http://tonykorn97.itpub.net/post/6414/252226   在編輯文件之後退出時,vi(vim)提示”Can’t write viminfo file”錯誤,瞭解一下viminfo文件:

原创 windows連接代理服務器,總是彈出輸入用戶名和密碼的框的問題

win7連接代理服務器,總是彈出輸入用戶名和密碼的框的問題 .  1. 首先確認一下控制面板-系統和安全-windows防火牆-允許的程序裏打開了"文件和打印機共享"  2. 開始=>運行... =>gpedit.msc=>本地計算機策略

原创 makefile編寫

   makefile很重要       什麼是makefile?或許很多Winodws的程序員都不知道這個東西,因爲那些Windows的IDE都爲你做了這個工作,但我覺得要作一個好的和professional的程序員,makefil

原创 leetcode 136

136. Single Number Total Accepted: 139245Total Submissions: 273783Difficulty: Medium Given an array of intege

原创 leetcode 238. Product of Array Except Self

Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of a