原创 Lintcode61 Search for a Range solution 題解

【題目描述】Given a sorted array of n integers, find the starting and ending position of a given target value.If the target is

原创 Lintcode55 Compare Strings solution 題解

【題目描述】Compare two strings A and B, determine whether A contains all of the characters in B.The characters in string A an

原创 Twitter Software Engineer 面經

去年十月份左右因爲感覺要提前找找工作,所以比較盲目地投了不少簡歷,當時拿到了幾個公司的面試,但都因爲自己表現太差勁失敗了。後來回來後就分析了分析自身的問題,還是基礎太薄弱,面試時很多算法題做不太出來。所以後面就在Lincode上狂刷算法題。

原创 Lintcode59 3Sum Closest solution 題解

【題目描述】Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. R

原创 Lintcode56 Two Sum solution 題解

【題目描述】Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum

原创 Lintcode54 String to Integer II solution 題解

【題目描述】Implement function atoi to convert a string to an integer.If no valid conversion could be performed, a zero value

原创 Lintcode58 4Sum solution 題解

【題目描述】Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target?Find all u

原创 Lintcode62 Search in Rotated Sorted Array solution 題解

【題目描述】Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6

原创 Lintcode53 Reverse Words in a String solution 題解

【題目描述】Given an input string, reverse the string word by word.給定一個字符串,逐個翻轉字符串中的每個單詞。【題目鏈接】http://www.lintcode.com/en/prob

原创 快手 Android 工程師面經

看着我把簡歷投完之後彈出的“完成”字樣,我就十分的激動了,我是一名應屆畢業生,老老實實的那種,學過的知識我都一步一個腳印的複習的完了,Lintcode上該刷的題,也妥妥的完成了,但是一想到這個富於激情的公司我就神往不已,因爲,這家公司在短短

原创 Lintcode57 3Sum solution 題解

【題目描述】Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets

原创 Lintcode60 Search Insert Position 題解

【題目描述】Given a sorted array and a target value, return the index if the target is found. If not, return the index where i

原创 Lintcode54 String to Integer II solution 題解

【題目描述】Implement function atoi to convert a string to an integer.If no valid conversion could be performed, a zero value

原创 Lintcode58 4Sum solution 題解

【題目描述】Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target?Find all u

原创 Twitter Software Engineer 面經

去年十月份左右因爲感覺要提前找找工作,所以比較盲目地投了不少簡歷,當時拿到了幾個公司的面試,但都因爲自己表現太差勁失敗了。後來回來後就分析了分析自身的問題,還是基礎太薄弱,面試時很多算法題做不太出來。所以後面就在Lincode上狂刷算法題。