Skip to content

Instantly share code, notes, and snippets.

-module(tree).
-export([empty/0, insert/3, lookup/2]).
-export([construct/2, construct_test/0]).
empty() -> {node, 'nil'}.
insert(Key, Val, {node, 'nil'}) ->
# bob
import string
class Bob(object):
def hey(self, spoken):
words = spoken.strip()
# Default response
response = "Whatever."
if self.isBlank(words):
import time
import random
import string
TEST_STR = "".join([string.letters[random.randint(1, len(string.letters)-1)] for x in range(0, 10000)])
start_time = time.time()
TEST_STR.upper()
print "UPPER", time.time() - start_time