原创 [編程練習][Add Two Numbers]
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each
原创 [編程練習][Two Sum]
太久不編程,手會生。最近開始做一些編程題目,用我比較不熟悉的python來寫。 Two Sum(題目來自:https://oj.leetcode.com/problems/two-sum/) Given an array of in
原创 [編程練習][Median of Two Sorted Arrays]
題目來自leetcode https://oj.leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays A and B of size
原创 [我的翻譯]代碼審查過程
本文由 伯樂在線 - drowzju 翻譯,Lingfeng Ai 校稿。未經許可,禁止轉載! 英文出處:matthew machuga。 對我而言,把代碼產品化而沒有合適的審查流程,就像是一場抽抽樂遊戲。代碼當然也有可能會挺好,不
原创 [編程練習]ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to di
原创 [我的翻譯]30分鐘編寫一個Flask應用
本文由 伯樂在線 - drowzju 翻譯,Lingfeng Ai 校稿。未經許可,禁止轉載! 英文出處:stormpath。 Flask 是一種很讚的Python web框架。它極小,簡單,最棒的是它很容易學。 今天
原创 [編程練習][Longest Substring Without Repeating Characters]
題目來自https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length o
原创 [編程練習]Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000,
原创 [編程練習][Longest Substring Without Repeating Characters]<LeetCode-3>
題目來自https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length o
原创 [我的翻譯]效代碼審查:來自前質疑者的9個建議
譯者說明:本文由 伯樂在線 - drowzju 翻譯,黃利民 校稿。未經許可,禁止轉載!英文出處:Gareth Wilson。 理論我知道。代碼審查(Code Review)有助於: 抓bug保證代碼的可讀性,可維護性在團隊中散
原创 [編程練習][Median of Two Sorted Arrays]<LeetCode-4>
題目來自leetcode https://oj.leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays A and B of size
原创 Python的裝飾器(decorator)
python的裝飾器是一個非常有趣的特性。但是如果對decorator這一設計模式或者對Python語言不瞭解,初次看到這樣的代碼恐怕會覺得難以理解: def baselog_decorator(func): def log_
原创 [我的翻譯]如何讓程序員每週工作60-80個小時?
本文由 伯樂在線 - drowzju 翻譯,sunbiaobiao 校稿。未經許可,禁止轉載!英文出處:Gergana Dimow 【伯樂在線導讀】:其實標題中的問題原型是“如何讓程序員每週工作60-80個小時?”,來自 Quora
原创 [編程練習]ZigZag Conversion <LeetCode-6>
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to di
原创 [編程練習][Two Sum]<LeetCode-1>
太久不編程,手會生。最近開始做一些編程題目,用我比較不熟悉的python來寫。 Two Sum(題目來自:https://oj.leetcode.com/problems/two-sum/) Given an array of in