發表文章

Leetcode:Pascal's triangle

Pascal's triangle  Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ]

Leetcode:Add digits

Add digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it. Follow up: Could you do it without any loop/recursion in O(1) runtime? Hint: A naive implementation of the above process is trivial. Could you come up with other methods?

AE素材*大帝國 Location

圖片
下載 Download

JS#分子量計算機

圖片
前幾個禮拜,在某個社交平台上看到有人用 PHP 建構一個強大的 分子量計算機 ,當時我就在想,這有必要用到 PHP 嗎?直接在 Client 端計算不是更快更好?這樣不是更省資源嗎?所以為了解決這種疑難雜症,必須直接治本才能有效解決後患,於是開始了 Js 版本的撰寫。

CSS w/ jQuery#魔法陣

圖片
看到有人很無聊做了這個東西的 jQuery 版本,但我更無聊,因為 jQuery 版本佔用了很多資源,會把你的資源全部吃光光。 :P 於是乎我決定無聊的去改良這東西,變成為 CSS 版本!(歡呼聲)

Delphi7#Image Process - Simple Version

圖片
本程式是利用顏色的特性來做三種不同的特效, 增亮、平均亮度、沙龍照 ,而這因為是簡單版,所以只有支援 *.jpeg , *.jpg , *.bmp 。至於以後會不會出 Standard 就不得而知了。

C#Merge Sort

圖片