原创 LeetCode 557:反轉字符串中的單詞 III Reverse Words in a String III

公衆號:愛寫bug(ID:icodebugs) 給定一個字符串,你需要反轉字符串中每個單詞的字符順序,同時仍保留空格和單詞的初始順序。 Given a string, you need to reverse the order of cha

原创 LeetCode 485:連續最大1的個數 Max Consecutive Ones(python java)

公衆號:愛寫bug 給定一個二進制數組, 計算其中最大連續1的個數。 Given a binary array, find the maximum number of consecutive 1s in this array. 示例 1:

原创 # Leetcode 67:Add Binary(二進制求和)

Leetcode 67:Add Binary(二進制求和) (python、java) Given two binary strings, return their sum (also a binary string). The input

原创 Leetcode 54:Spiral Matrix 螺旋矩陣

54:Spiral Matrix 螺旋矩陣 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral