Skip to content

Instantly share code, notes, and snippets.

View iamjosephmj's full-sized avatar

Joseph James iamjosephmj

View GitHub Profile
class Greedy:
'''
The constructor takes to parameters
:denominations -> ($20,$10,$5..etc)
:target -> amount to be given to Joseph
'''
def __init__(self,deominations,target):
self.denominations = deominations
self.target = target
This is a sample t and c for the bank mock concept
Sample terms and cond - loco
@iamjosephmj
iamjosephmj / Problem one solution
Last active January 18, 2021 17:26
1.) Problem solving
def main():
# input
# stores
alphabets, num = str(input()), input()
if not alphabets.isalpha():
raise Exception("Expected only alphabets")
else:
alphabets = alphabets.lower()