Skip to content

Commit 90af2af

Browse files
committed
remove unused code
1 parent cc2703d commit 90af2af

File tree

69 files changed

+4
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4
-361
lines changed

Python/01-matrix.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
import collections
55

6-
try:
7-
xrange # Python 2
8-
except NameError:
9-
xrange = range # Python 3
10-
116

127
class Solution(object):
138
def updateMatrix(self, matrix):

Python/1-bit-and-2-bit-characters.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Time: O(n)
22
# Space: O(1)
33

4-
try:
5-
xrange # Python 2
6-
except NameError:
7-
xrange = range # Python 3
8-
94

105
class Solution(object):
116
def isOneBitCharacter(self, bits):

Python/132-pattern.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Time: O(n)
22
# Space: O(n)
33

4-
try:
5-
xrange # Python 2
6-
except NameError:
7-
xrange = range # Python 3
8-
94

105
class Solution(object):
116
def find132pattern(self, nums):

Python/24-game.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
from operator import add, sub, mul, truediv
55
from fractions import Fraction
66

7-
try:
8-
xrange # Python 2
9-
except NameError:
10-
xrange = range # Python 3
11-
127

138
class Solution(object):
149
def judgePoint24(self, nums):

Python/4-keys-keyboard.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Time: O(1)
22
# Space: O(1)
33

4-
try:
5-
xrange # Python 2
6-
except NameError:
7-
xrange = range # Python 3
8-
94

105
class Solution(object):
116
def maxA(self, N):

Python/4sum.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
import collections
55

6-
try:
7-
xrange # Python 2
8-
except NameError:
9-
xrange = range # Python 3
10-
116

127
# Two pointer solution. (1356ms)
138
class Solution(object):

Python/accounts-merge.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
import collections
66

7-
try:
8-
xrange # Python 2
9-
except NameError:
10-
xrange = range # Python 3
11-
127

138
class UnionFind(object):
149
def __init__(self):

Python/add-binary.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Time: O(n)
22
# Space: O(1)
33

4-
try:
5-
xrange # Python 2
6-
except NameError:
7-
xrange = range # Python 3
8-
94

105
class Solution:
116
# @param a, a string

Python/add-bold-tag-in-string.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
import collections
55
import functools
66

7-
try:
8-
xrange # Python 2
9-
except NameError:
10-
xrange = range # Python 3
11-
127

138
# 59ms
149
class Solution(object):

Python/additive-number.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Time: O(n^3)
22
# Space: O(n)
33

4-
try:
5-
xrange # Python 2
6-
except NameError:
7-
xrange = range # Python 3
8-
94

105
class Solution(object):
116
def isAdditiveNumber(self, num):

0 commit comments

Comments
 (0)