240 發(fā)簡(jiǎn)信
IP屬地:山西
  • 關(guān)于產(chǎn)生The server time zone value '?D1ú±ê×?ê±??' is unrecognized or represents more than one time zo...

    連接MySQL運(yùn)行報(bào)錯(cuò)The server time zone value '?D1ú±ê×?ê±??' is unrecognized or ...

  • 34. Find First and Last Position of Element in Sorted Array 2019-04-08

    1.自己寫的方法算柳,先用二分查找找出target對(duì)應(yīng)的數(shù)組下標(biāo)读存,然后再向前后找臨界值。 時(shí)間復(fù)雜度:最好的情況下為O(logn) ...

  • 33. Search in Rotated Sorted Array 2019-04-04

    方法1.例如4咙好,5,6,7延旧,0萌踱,1,2 首先取中間值并鸵,取完中間值之后左右總有一邊的是升序的排列鸳粉,判斷target的值是否在這個(gè)序列里面, 如...

  • 32. Longest Valid Parentheses 2019-04-03

    1.使用棧解決 重點(diǎn):記錄不能成對(duì)的括號(hào),之后再進(jìn)行相減园担。 時(shí)間復(fù)雜度O(n) class Solution { public int ...

  • 31. Next Permutation 2019-03-31

    1.解法: 在當(dāng)前序列中届谈,從尾端往前尋找兩個(gè)相鄰元素,前一個(gè)記為first弯汰,后一個(gè)記為second艰山,并且滿足first 小于 second。然后...

  • 23. Merge k Sorted Lists 2019-03-29

    1.按照合并兩條鏈表的方法依次合并k條鏈表 時(shí)間復(fù)雜度O(n*(k-1)) /** * Definition for singly-link...

  • 401. Binary Watch 2019-03-26

    1.回溯題咏闪。遞歸實(shí)現(xiàn). class Solution { //public static List list=new ArrayList...

  • 39. Combination Sum 2019-03-26

    1.這一題也是回溯的問題曙搬,使用了遞歸的方式來實(shí)現(xiàn)回溯。 ps:leetcode上的題目盡量不要定義全局變量,不然就會(huì)向我今天一樣纵装。 運(yùn)行的時(shí)候是...

  • 136. Single Number 2019-03-26

    1.暴力 class Solution { public int singleNumber(int[] nums) { HashMa...

亚洲A日韩AV无卡,小受高潮白浆痉挛av免费观看,成人AV无码久久久久不卡网站,国产AV日韩精品