Skip to content

Commit ee8886c

Browse files
committedJan 3, 2019
fix typo
1 parent c32ecbb commit ee8886c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎Python/intersection-of-two-arrays-ii.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def binary_search(compare, nums, left, right, target):
8888

8989
# If the given array is already sorted, and the memory is limited or m ~ n.
9090
# Time: O(m + n)
91-
# Soace: O(1)
91+
# Space: O(1)
9292
# Two pointers solution.
9393
class Solution(object):
9494
def intersect(self, nums1, nums2):

‎Python/largest-component-size-by-common-factor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Time: O(f * n), f is the max number of unique prime factors
2-
# Soace: O(p + n), p is the total number of unique primes
2+
# Space: O(p + n), p is the total number of unique primes
33

44
import collections
55

‎Python/valid-palindrome-ii.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Time: O(n)
2-
# Soace: O(1)
2+
# Space: O(1)
33

44
class Solution(object):
55
def validPalindrome(self, s):

0 commit comments

Comments
 (0)