phntom - Overview
Pinned Loading
-
edit_distance.py edit_distance.py
1
def ed(w1, w2):
2
l1, l2 = len(w1), len(w2)
3
4
if l1 == 0:
5
return l2
-
1800starwars.py 1800starwars.py
1
numbers = {
2
78279277: 'STARWARS'
3
}
4
5
words = set(numbers.values())
-
coin_sum.py coin_sum.py
1
### NaiveMultiCoinSum ###2
# this is O(2^n) runtime and O(n) space3
def coin_sum(coins, target_sum):
4
# the number of coins combinations that sum to target5
seen_ordered = set()
-
count_negatives_sorted_matrix.py count_negatives_sorted_matrix.py
1
def count_neg_sorted_matrix(m):
2
count = 0
3
4
row = 0
5
rows = len(m)


