Skip to content

Instantly share code, notes, and snippets.

View RusEu's full-sized avatar
🧙
Ajji Majji la Tarajji

Rus RusEu

🧙
Ajji Majji la Tarajji
View GitHub Profile
import { Subject } from 'rxjs/Rx';
import { OnDestroy } from '@angular/core';
export abstract class UnsubscribeOnDestroy implements OnDestroy {
protected d$: Subject<any>;
constructor() {
this.d$ = new Subject<void>();
@RusEu
RusEu / binary_search_tree.py
Last active June 24, 2018 10:45
Binary Search Tree
class Node():
def __init__(self, value=None):
self.left_child = None
self.right_child = None
self.value = value
class BST():
def __init__(self):
self.root = Node()