Skip to content

Instantly share code, notes, and snippets.

-module(second).
-export([hypo/2,area/2]).
-import(first, [mult/2,area/3,square/2]).
hypo(A,B) ->
math:sqrt(first:square(A) + first:square(B)).
area(A,B) ->
-module(first).
-export([double/1,mult/2,area/3,square/1,treble/1]).
mult(X,Y) ->
X*Y.
double(X) ->
mult(2,X).
@FerumFlex
FerumFlex / solution.py
Last active April 2, 2020 18:44
Solution
import copy
import time
class Stack:
__slots__ = ['size', 'values']
def __init__(self, values, size=4):
self.values = list(filter(lambda item: item != '-', values))
self.size = size