原创 Lintcode16 Permutations II solution 題解

【題目描述】Given a list of numbers with duplicate number in it. Find all unique permutations.給出一個具有重複數字的列表,找出列表所有不同的排列。【題目鏈接】

原创 Lintcode18 Subsets II solution 題解

【題目描述】Given a list of numbers that may has duplicate numbers, return all possible subsetsNotice:Each element in a subset

原创 Lintcode30 Insert Interval solution 題解

題目描述】Given a non-overlapping interval list which is sorted by start point.Insert a new interval into it, make sure the l

原创 Lintcode20 Dices Sum solution 題解

【題目描述】Throw n dices, the sum of the dices' faces is S. Given n, find the all possible value of S along with its probabil

原创 Lintcode11 Search Range in Binary Search Tree solution 題解

【題目描述】Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Search Tree. Find all the keys of tree i

原创 Lintcode28 Search a 2D Matrix solution 題解

【題目描述】Write an efficient algorithm that searches for a value in an m x n matrix.This matrix has the following properties

原创 Lintcode17 Subsets solution 題解

【題目描述】Given a set of distinct integers, return all possible subsets.Notice:Elements in a subset must be in non-descendin

原创 Lintcode28 Search a 2D Matrix solution 題解

【題目描述】Write an efficient algorithm that searches for a value in an m x n matrix.This matrix has the following properties

原创 Lintcode30 Insert Interval solution 題解

題目描述】Given a non-overlapping interval list which is sorted by start point.Insert a new interval into it, make sure the l

原创 Lintcode18 Subsets II solution 題解

【題目描述】Given a list of numbers that may has duplicate numbers, return all possible subsetsNotice:Each element in a subset

原创 Lintcode22 Flatten List solution 題解

【題目描述】Given a list, each element in the list can be a list or integer. flatten it into a simply list with integers.Notic

原创 小米麪經-技術崗(編程小白如何進階)

先介紹下背景,我本科專業是硬件轉軟件方面,所以一開始算法基礎比較差,沒有做過系統設計,爲了能得到好的面試機會,我一直都有努力準備,還在網上關注了各種能提高編程能力的攻略,我覺得打好基礎的前提是要找到優質的學習資源,這樣才能事半功倍,切忌在網

原创 Lintcode29 Interleaving String solution 題解

【題目描述】Given three strings: s1, s2, s3, determine whether s3 is formed by the interleaving of s1 and s2.給出三個字符串:s1、s2、s3,

原创 Lintcode16 Permutations II solution 題解

【題目描述】Given a list of numbers with duplicate number in it. Find all unique permutations.給出一個具有重複數字的列表,找出列表所有不同的排列。【題目鏈接】

原创 Lintcode20 Dices Sum solution 題解

【題目描述】Throw n dices, the sum of the dices' faces is S. Given n, find the all possible value of S along with its probabil