Description A peak element is an element that is greater than its neighb...
Description 實(shí)現(xiàn)除法(保留整數(shù)) Solution 被除數(shù)每次*2ans每次加1<<shift num
Description Given a binary tree rooted at root, the depth of each node i...
Description 給出兩個(gè)單詞(start和end)和一個(gè)字典,找出從start到end的最短轉(zhuǎn)換序列,輸出最短序列的長度。 變換規(guī)則如下...
Description Given a non-empty string s, you may delete at most one chara...
Description 給定一個(gè)字符串,表示CPU需要執(zhí)行的任務(wù)。 這個(gè)字符串由大寫字母A到Z構(gòu)成,不同的字母代表不同的任務(wù)。完成任務(wù)不需要按照...
Description Given two strings s and t, determine if they are both one ed...
Description Given an array of integers and an integer k, you need to fin...
Description 兩個(gè)string的二進(jìn)制數(shù)相加 Solution 簡潔寫法