Skip to content

Instantly share code, notes, and snippets.

View atopuzov's full-sized avatar
😎
Haskell, nix, functional programming

Aleksandar Topuzović atopuzov

😎
Haskell, nix, functional programming
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2014 Aleksandar Topuzović <aleksandar.topuzovic@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@atopuzov
atopuzov / gist:fb6f9de0a6a843a466f3
Last active July 6, 2021 14:47
Trees, trees everywhere ...
#!/usr/bin/env python
# (c) Aleksandar Topuzovic <aleksandar.topuzovic@gmail.com>
from functools import partial
from collections import deque
class node(object):
'''Simple nodee'''
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
### Keybase proof
I hereby claim:
* I am atopuzov on github.
* I am atopuzov (https://keybase.io/atopuzov) on keybase.
* I have a public key whose fingerprint is 0CB0 0F1B 4AAD C52D 58E4 E0FB 8D7C DD3C 5621 80B7
To claim this, I am signing this object: