Skip to content

Instantly share code, notes, and snippets.

Avatar

Joseph James iamjosephmj

View GitHub Profile
@iamjosephmj
iamjosephmj / Problem one solution
Last active Jan 18, 2021
1.) Problem solving
View Problem one solution
def main():
# input
# stores
alphabets, num = str(input()), input()
if not alphabets.isalpha():
raise Exception("Expected only alphabets")
else:
alphabets = alphabets.lower()
View Sample terms and cond
This is a sample t and c for the bank mock concept
View Greedy
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