原创 LeetCode (M)

Maximum Depth of Binary Tree  Total Accepted: 14814 Total Submissions: 34098My Submissions Given a binary tree,

原创 LeetCode (P)

Pow(x, n)  Total Accepted: 5493 Total Submissions: 21464My Submissions Implement pow(x, n). class Solution {

原创 Google CodeJam Qualification Round 2014

Problems: https://code.google.com/codejam/contest/2974486/dashboard Official Analysis: https://code.google.com/codejam/

原创 POJ 2186 -- Popular Cows (Strongly Connected Components)

Problem: http://poj.org/problem?id=2186 縮點 http://en.wikipedia.org/wiki/Vertex_contraction#Vertex_identification 強連通

原创 Google CodeJam 2014 Round 1C

Problem: https://code.google.com/codejam/contest/3004486/dashboard Problem A. Part Elf This contest is open for p

原创 Input English Ordinal Numbers in LaTeX

 http://www.ctan.org/pkg/nth http://www.ctan.org/pkg/engord 點贊 收藏 分享 文章舉報 lllcfr1 發佈了5

原创 C++: Do { ... } While (0)

An example from http://webgpu.hwu.crhc.illinois.edu/mp/0 #define wbCheck(stmt) do {

原创 矩形切割

Previous related blog: http://blog.csdn.net/lllcfr/article/details/7567045 先判斷是否重疊,然後切割.注意答案要求的是哪一部分. 1. 二維矩形 USACO 5

原创 Principles of parallel programming

Book: http://book.douban.com/subject/3564286/ Authors: Calvin Lin (UT Austin), Lawrence Snyder (UW) Chapter 1. Introd

原创 Seven languages in seven weeks (notes on Haskell)

Haskell pure functional programming language, strong static typing (like Scala) a string is just a list of characters

原创 TopCoder SRM205 Div1 1000pt LongPipes

Problem: http://community.topcoder.com/stat?c=problem_statement&pm=2226 Analysis: https://community.topcoder.com/tc?mod

原创 IM fron Command Line

Cygwin + weechat or irssi + bitlbee applicable to gtalk, facebook, twitter, etc.  點贊 收藏 分享 文章舉報

原创 《程序員應該知道的97件事》

  《程序員應該知道的97件事》http://book.douban.com/subject/5263681/ False consensus bias虛假同感偏差 柏拉圖:風格之美、和諧、優雅及優美的節奏,盡在於簡單 童子軍規

原创 2014編程之美挑戰賽資格賽

大賽得分及排名規則詳見:http://programming2014.cstnet.cn/rules.html Official Analysis: http://weibo.com/2685713683/B0aWBfQwk Probl

原创 Setup SSH and SVN on Windows Server

cygwin: install sshd, cygrunsrv http://lifehacker.com/205090/geek-to-live--set-up-a-personal-home-ssh-server http://gro