Skip to content

Instantly share code, notes, and snippets.

View tushar-mittal's full-sized avatar

Tushar Mittal tushar-mittal

View GitHub Profile
@tushar-mittal
tushar-mittal / lottery_ticket_generator.py
Last active March 16, 2017 08:29
checking for lottery tickets using the specified constraints
def find_lottery_suggestions_from_numbers(numbers, combinations_to_find):
#iterate over the numbers list
#find the eligible combinations
#print out the answer
print "Checking in input set :", numbers
for number in numbers:
#print "checking for ", number
combos = check_for_unique_combinations(int(number), combinations_to_find)
if combos:
print "FOUND Eligible Lottery Candidate >>>>>>>>>>", number, combos