LeetCode - Missing Number

LeetCode 的 Missing Number 題目如下: Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array. ...

February 29, 2016 · 1 min · 264 words · Larry Nung

LeetCode - Move Zeroes

LeetCode 的 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-zero elements. ...

February 28, 2016 · 1 min · 236 words · Larry Nung

LeetCode - Number of 1 Bits

LeetCode 的 Number of 1 Bits 題目如下: Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight). ...

February 24, 2016 · 1 min · 172 words · Larry Nung

log4net - RollingFileAppender's CountDirection Property

log4net 在使用 RollingFileAppender 去做 Log 的紀錄時,我們需要注意 CountDirection 的設定。設定值大於 0,表示以遞增的方式 Rolling。反之,表示以遞減的方式 Rolling。 ...

February 20, 2016 · 1 min · 431 words · Larry Nung

LeetCode - Power of Three

LeetCode 的 Power of Three 題目如下: Given an integer, write a function to determine if it is a power of three. ...

February 18, 2016 · 1 min · 166 words · Larry Nung

Bootstrap - Use Glyphicons with bower

當我們透過 Bower 來使用 Bootstrap Glyphicons。 {% img /images/posts/GlyphiconsWithBower/1.png %} ...

February 18, 2016 · 1 min · 206 words · Larry Nung

FontAwesome - Use FontAwesome with bower

當我們透過 Bower 來使用 FontAwesome。 {% img /images/posts/FontAwesomeWithBower/1.png %} 下載下來的 FontAwesome CSS 內會用相對路徑指定所要使用的 Font 位置,但這樣在載入 CSS 時會指不到正確的 Font。 ...

February 17, 2016 · 1 min · 209 words · Larry Nung

LeetCode - Add Digits

LeetCode 的 Add Digits 題目如下: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. ...

February 10, 2016 · 1 min · 266 words · Larry Nung

Bower - Using Bower in Visual Studio 2015

Visual Studio 2015 開始支援 Bower,使用時需先為專案加入 Bower Configuration File。 ...

January 29, 2016 · 1 min · 241 words · Larry Nung

Grunt - Using Grunt in Visual Studio 2015

Visual Studio 2015 開始支援 Grunt,使用時需先為專案加入 NPM Configuration File。 ...

January 28, 2016 · 1 min · 220 words · Larry Nung