Skip to content

Instantly share code, notes, and snippets.

@Mellen
Mellen / challenge16.py
Last active February 20, 2026 22:37
SO challenge 16 code
import json
from uuid import uuid4
class Node:
def __init__(self, coins, target, prev, coin):
self.previous_node = prev
self.target = target
self.count = target+1
self.id = uuid4()
self.coin = coin