Skip to content

Instantly share code, notes, and snippets.

View gameguy43's full-sized avatar
💭
Working on interviewcake.com!

Parker Phinney gameguy43

💭
Working on interviewcake.com!
View GitHub Profile
def get_best_profit_brute_force(stock_prices_yesterday):
max_profit = 0
# go through every time
for outer_time in xrange(len(stock_prices_yesterday)):
# for every time, go through every OTHER time
for inner_time in xrange(len(stock_prices_yesterday)):
class WordCloudData:
def __init__(self, input_string):
self.input_string = input_string
self.words_to_counts = {}
self.populate_hash()
def populate_hash(self):
#
current_word = ''