原创 Lintcode40 Implement Queue by Two Stacks solution 題解

【題目描述】As the title described, you should only use two stacks to implement a queue's actions.The queue should support pus

原创 Lintcode31 Partition Array solution題解

【題目描述】Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that:All

原创 Lintcode42 Maximum Subarray II solution 題解

【題目描述】Given an array of integers, find two non-overlapping subarrays which have the largest sum.The number in each subar

原创 Lintcode34 N-Queens II solution 題解

【題目描述】Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct s

原创 Lintcode38 Search a 2D Matrix II solution 題解

【題目描述】Write an efficient algorithm that searches for a value in an m x n matrix, return the occurrence of it.This matrix

原创 微軟SDE面經(電面+onsite)

本人工作1年多了,正在準備跳槽中。剛剛參加完微軟西雅圖的面試,來分享一下自己的面試過程。一共7輪面試,其中1輪電面,6輪Onsite。第一輪 電面1第一輪是電面,先是讓自我介紹,然後根據簡歷提了幾個問題之後,就直接開始上題了。給出一個字符串

原创 Lintcode36 Reverse Linked List II solution 題解

【題目描述】Reverse a linked list from position m to n.Notice:Given m, n satisfy the following condition: 1 ≤ m ≤ n ≤ length o

原创 10個留美必備生活網站

不少同學習慣了天朝各種方便的互聯網服務,一到美國往往感到不適應,其實美國也有很多提供類似服務的網站。今天小編就給你做一個大盤點。幫助你在美國也能輕鬆享受和國內類似的服務。1.Yelp 美國最大的點評網站民以食爲天,今天我們首先要介紹的就是Y

原创 Lintcode35 Reverse Linked List solution 題解

【題目描述】Reverse a linked list.翻轉一個鏈表【題目鏈接】http://www.lintcode.com/en/problem/reverse-linked-list/【題目解析】這題要求我們翻轉[m, n]區間之間的

原创 如何進入 Google 工作

如果你夢想進入Google,那麼以下建議或許可以幫到你:1.定個具體目標你需要縮小你的目標範圍,把目標落實到具體的工作崗位,也就是說,你需要通過對Google的深入瞭解,知道自己想從事具體哪個方面的工作。比如,你需要在一開始就給自己定個小目

原创 Lintcode33 N-Queens solution 題解

【題目描述】The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each ot

原创 Lintcode32 Minimum Window Substring solution 題解

【題目描述】Given a string source and a string target, find the minimum window in source which will contain all the characters

原创 Lintcode31 Partition Array solution題解

【題目描述】Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that:All

原创 Lintcode40 Implement Queue by Two Stacks solution 題解

【題目描述】As the title described, you should only use two stacks to implement a queue's actions.The queue should support pus

原创 如何進入 Google 工作

如果你夢想進入Google,那麼以下建議或許可以幫到你:1.定個具體目標你需要縮小你的目標範圍,把目標落實到具體的工作崗位,也就是說,你需要通過對Google的深入瞭解,知道自己想從事具體哪個方面的工作。比如,你需要在一開始就給自己定個小目