You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,9 +222,9 @@ I'm currently working on [Analytics-Zoo](https://github.com/intel-analytics/anal
222
222
| 1089 |[Duplicate Zeros](https://leetcode.com/problems/duplicate-zeros/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1089_Duplicate_Zeros.py)[Java](https://github.com/qiyuangong/leetcode/blob/master/java/1089_Duplicate_Zeros.java)| 2 Pass, store last position and final move steps, O(n) and O(1) |
223
223
| 1108 |[Defanging an IP Address](https://leetcode.com/problems/defanging-an-ip-address/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1108_Defanging_an_IP_Address.py)[Java](https://github.com/qiyuangong/leetcode/blob/master/java/1108_Defanging_an_IP_Address.java)| String manipulate (split, replace and join), O(n) and O(n) |
224
224
| 1260 |[Shift 2D Grid](https://leetcode.com/problems/shift-2d-grid/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1260_Shift_2D_Grid.py)[Java](https://github.com/qiyuangong/leetcode/blob/master/java/1260_Shift_2D_Grid.java)| Final position of each element can be computed according to k, m and n, e.g., k == mn, then don't move, O(mn) and O(mn) |
225
-
| 1290 |[Convert Binary Number in a Linked List to Integer](https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/)|[Python](https://github.com/srivastavaayu/leetcode-1/blob/master/python/1290_Convert_Binary_Number_in_a_Linked_List_to_Integer.py)| Take 2 to the power digit position from right (starting from 0) and multiply it with the digit |
225
+
| 1290 |[Convert Binary Number in a Linked List to Integer](https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1290_Convert_Binary_Number_in_a_Linked_List_to_Integer.py)| Take 2 to the power digit position from right (starting from 0) and multiply it with the digit |
226
226
| 1337 |[The K Weakest Rows in a Matrix](https://leetcode.com/problems/the-k-weakest-rows-in-a-matrix/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1337_The_K_Weakest_Rows_in_a_Matrix.py)[Java](https://github.com/qiyuangong/leetcode/blob/master/java/1337_The_K_Weakest_Rows_in_a_Matrix.java)| Check by row, from left to right, until encount first zero, O(mn) and O(1) |
227
-
| 1342 |[Number of Steps to Reduce a Number to Zero](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/)|[Python](https://github.com/srivastavaayu/leetcode-1/blob/master/python/1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.py)| If number is divisible by 2, divide the number by 2, else subtract 1 from the number, and output the number of steps |
227
+
| 1342 |[Number of Steps to Reduce a Number to Zero](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.py)| If number is divisible by 2, divide the number by 2, else subtract 1 from the number, and output the number of steps, O(logn) and O(1)|
228
228
| 1365 |[How Many Numbers Are Smaller Than the Current Number](https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1365_How_Many_Numbers_Are_Smaller_Than_the_Current_Number.py)[Java](https://github.com/qiyuangong/leetcode/blob/master/java/1365_How_Many_Numbers_Are_Smaller_Than_the_Current_Number.java)| 1. Sort and get position in sorted nums, O(nlogn) and O(n)<br>2. Fill count into 0-100, O(n) and O(1) |
229
229
| 1480 |[Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/1480_Running_Sum_of_1d_Array.py)[Java](https://github.com/qiyuangong/leetcode/blob/master/java/1480_Running_Sum_of_1d_Array.java)| 1. Go through the array, O(n) and O(1)<br>2. Accumulate API |
0 commit comments