Skip to content

Instantly share code, notes, and snippets.

View dimka11's full-sized avatar

Dmitry Sokolov dimka11

  • Russia, Omsk
  • 22:07 (UTC -12:00)
View GitHub Profile
//Complex.cpp
#include <iostream>
#include "Complex.h"
using std::cout;
using std::endl;
/**
* Creates a new Complex with default values for real and imaginary
<snippet>
<content><![CDATA[
<!-- begin $1 -->
<div class="$1">
$2
</div>
<!-- end $1 -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>di</tabTrigger>
@dimka11
dimka11 / heapClass.py
Created December 29, 2016 09:13 — forked from RadhikaG/heapClass.py
A class to demonstrate the different operations on heaps.
def parent(i):
return i/2
def left(i):
return 2*i
def right(i):
return (2*i + 1)
class Heap: