View Problem one solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - loco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sample terms and cond - loco |
View Sample terms and cond
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a sample t and c for the bank mock concept |
View Greedy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |