Skip to content

Instantly share code, notes, and snippets.

View iamjosephmj's full-sized avatar
:octocat:
available

iamjosephmj iamjosephmj

:octocat:
available
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()
@iamjosephmj
iamjosephmj / OverlayView.kt
Last active December 30, 2024 05:35
Face Landmarker centering logic
override fun draw(canvas: Canvas) {
super.draw(canvas)
// Clear previous drawings if results exist but have no face landmarks
if (results?.faceLandmarks().isNullOrEmpty()) {
clear()
return
}