Skip to content

Instantly share code, notes, and snippets.

View TheSavior's full-sized avatar

Eli White TheSavior

View GitHub Profile
@TheSavior
TheSavior / Program.cs
Created November 13, 2012 18:47
Fibonacci with Memoization
class Program
{
static Dictionary<int, int> nums;
static void Main(string[] args)
{
int testNum = 35;
int loops = 20;
nums = new Dictionary<int, int>();
@TheSavior
TheSavior / Breadth First
Created November 12, 2012 07:26
Breadth First Traversal
class Program
{
static void Main(string[] args)
{
Node node = new Node(5);
var n2 = new Node(2);
node.Children.Add(n2);
var n4 = new Node(16);
@TheSavior
TheSavior / Contiguous max
Created November 12, 2012 07:08
Calculate the maximum sum from a contiguous array of ints
class Program
{
static void Main(string[] args)
{
int[] nums = new int[] { 1, 4, -6, 2, 4, -1, 3 };
bigSum(nums);
return;
}