I hereby claim:
- I am vishoo7 on github.
- I am vishoe7 (https://keybase.io/vishoe7) on keybase.
- I have a public key ASBpsYvpmVluIXQHG4z3Eqp6RpfnRT2Aa9s1L-efbAp3ugo
To claim this, I am signing this object:
import sys | |
def find_max_min_brute(array, x=0, y=0): | |
max_x = max_y = len(array) - 1 | |
current = array[y][x] | |
if x == max_x and y == max_y: | |
return current | |
if x == max_x: | |
return min(current, find_max_min_brute(array, x, y + 1)) | |
if y == max_y: |
from random import Random | |
class RandomItemRetriever: | |
''' | |
This class will take a list of lists and return the next item in a randomly selected list. | |
Time: O(1) | |
Space: O(n) where n = number of lists | |
''' | |
def __init__(self, lists): | |
# store original data (never mutated) |
I hereby claim:
To claim this, I am signing this object: