原创 Jump Game II

一. Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array.

原创 Insert Interval

一. Insert Interval Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessa

原创 Permutations II

一. Permutations II Given a collection of numbers that might contain duplicates, return all possible unique permutations

原创 Elasticsearch源碼編譯運行

下載源碼 從https://github.com/elastic/elasticsearch上下載相應版本的源代碼,本人下載的是5.4.2版本的源代碼 獲取相關依賴 Elasticsearch在5.4版本是採用gradle來管理的,進入源

原创 Gray Code

一. Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-n

原创 N-Queens

一. N-Queens The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack

原创 Edit Distance

一. Edit Distance Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2.