Pinned Loading
-
-
edit_distance.py
edit_distance.py 1def ed(w1, w2):
2l1, l2 = len(w1), len(w2)
34if l1 == 0:
5return l2
-
1800starwars.py
1800starwars.py 1numbers = {
278279277: 'STARWARS'
3}
45words = set(numbers.values())
-
coin_sum.py
coin_sum.py 1### NaiveMultiCoinSum ###
2# this is O(2^n) runtime and O(n) space
3def coin_sum(coins, target_sum):
4# the number of coins combinations that sum to target
5seen_ordered = set()
34 contributions in the last year
Day of Week | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | November Nov | December Dec | January Jan | February Feb | March Mar | April Apr | ||||||||||||||||||||||||||||||||||||||||
Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Saturday Sat |
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More