原创 Lintcode41 Maximum Subarray solution 題解

【題目描述】Given an array of integers, find a contiguous subarray which has the largest sum.Notice:The subarray should contai

原创 Lintcode34 N-Queens II solution 題解

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

原创 Lintcode39 Recover Rotated Sorted Array solution 題解

【題目描述】Given a rotated sorted array, recover it to sorted array in-place.給定一個旋轉排序數組,在原地恢復其排序。【題目鏈接】http://www.lintcode.co

原创 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

原创 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

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

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

原创 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

原创 Lintcode35 Reverse Linked List solution 題解

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

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

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

原创 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