分类
Develop Java ruby on rails 算法

Leetcode: Factor Combinations

Numbers can be regarded as product of its factors. For […]

分类
Develop ruby on rails 算法

Leetcode: Encode and Decode TinyURL

TinyURL is a URL shortening service where you enter a U […]

分类
Develop 算法

Leetcode: Word Ladder II

Question Given two words (beginWord and endWord), and a […]

分类
C++ Develop ruby on rails 算法

Leetcode: Valid Number

Question Validate if a given string is numeric. Some ex […]

分类
Develop ruby on rails

Step By Step of Creating a Ruby Gem

Step By Step of Creating a Ruby Gem I’m going to […]

分类
Develop ruby on rails

[Repost] The definition of nil, empty, blank and present in ruby on rails

分类
Develop 算法

LeetCode: Reverse Integer

Previous Post This is the previous post on same questio […]

分类
Develop 算法

LeetCode: ZigZag Conversion

Previous post This is the old post on this question, us […]

分类
Develop ruby on rails

Formatting DateTime in Rails

There are some useful params with Time#to_s [14] pry(ma […]

分类
Develop ruby on rails

[Solved] Install Nokogiri on Yosemite with Ruby 2.1.3

Updated to Yosemite and got the following problem while […]

分类
Develop ruby on rails

Using VCR with WebMock in Rails Rspec Tests

If the application need interaction with another web se […]

分类
Develop ruby on rails

[Repost] Here Document in Ruby

This is repost from http://log.gmarik.info/2007/12/ruby […]

分类
Develop ruby on rails

STI of ActiveRecord in Rails

STI, Single Table Inheritance, supported by ActiveRecor […]

分类
Develop ruby on rails

The difference from %w to %W in Ruby

Difference between %w and %W In short, %w act as ‘, whi […]

分类
C++ Develop 算法

LeetCode题目:Valid Parentheses

Given a string containing just the characters ‘(& […]

分类
C++ Develop ruby on rails 算法

LeetCode: Trapping Rain Water

Trapping Rain Water Given n non-negative integers repre […]

分类
C++ Develop ruby on rails 算法

LeetCode: Merge Intervals

Merge Intervals Given a collection of intervals, merge […]

分类
C++ Develop 算法

LeetCode: Median of Two Sorted Arrays

Updated Java version at 2018-07-14 Question Median of T […]

分类
C++ Develop 算法

LeetCode: Longest Substring Without Repeating Characters

Given a string, find the length of the longest substrin […]

分类
C++ Develop 算法

LeetCode题目:Longest Palindromic Substring,二维动态规划

Updated at 2016-04-28 Question Longest Palindromic Subs […]

分类
C++ Develop ruby on rails 算法

LeetCode: Letter Combinations of a Phone Number

Letter Combinations of a Phone Number Given a digit str […]