[摘要] 在Is there a loop(上)中,我們判斷了一個(gè)單向鏈表有沒(méi)有環(huán),接下來(lái)我們繼續(xù)探索if有環(huán),環(huán)的長(zhǎng)度以及環(huán)的入口點(diǎn)。限于篇幅,再次不貼完整代碼!/*************************************************************...[全文]
[摘要] 看到application這個(gè)類,一直不知道這個(gè)是干什么用的,今天剛好有點(diǎn)時(shí)間,所以進(jìn)行了詳細(xì)的學(xué)習(xí)。一.先對(duì)它的整體概念解釋:在android源碼中對(duì)他的描述是; * Base class for those who need to maintain g...[全文]
[摘要] 【題目】Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].【分析】(1)先將目[全文]