今天來和大家聊聊日常經(jīng)常使用到的偷懶方法 --> defaultdict defaultdict示例 字典作為日常使用頻率較高的一種數(shù)據(jù)類型,常...
592.分數(shù)加減運算[https://leetcode.cn/problems/fraction-addition-and-subtractio...
今天和大家聊聊Python的迭代器和可迭代對象。 學前知識復習 在學習生成器之前,我們需要先了解二者的關系: 迭代器一定是可迭代對象,但可迭代對...
SOS,今天說到的此zip(),非彼.zip的壓縮文件 ... Python中的zip函數(shù) Python中有一個zip()函數(shù),可以用來將可迭代...
532.數(shù)組中的k-diff數(shù)對[https://leetcode.cn/problems/k-diff-pairs-in-an-array/s...
498.對角線遍歷[https://leetcode.cn/problems/diagonal-traverse/solution/by-qin...
997.找到小鎮(zhèn)的法官[https://leetcode-cn.com/problems/find-the-town-judge/solutio...
239.滑動窗口最大值[https://leetcode-cn.com/problems/sliding-window-maximum/solu...
昨日回顧 昨天我們學習了樹的一些基礎名詞與分類,很多人想問,為什么很多公司的手撕算法環(huán)節(jié)都會選擇樹這個數(shù)據(jù)類型來考察面試者呢? 因為樹中包含的知...