Skip to content

Instantly share code, notes, and snippets.

@serkansendur
serkansendur / gist:5667374
Created May 29, 2013 01:29
C# BST implementation.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
public class BSTNode<T> where T : IComparable<T>
@serkansendur
serkansendur / gist:5659029
Created May 27, 2013 20:53
c# custom stack implementation. There is already a Stack type in .NET library. Mine is for training purposes.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
@serkansendur
serkansendur / gist:5654944
Created May 27, 2013 02:46
c# linked list implementation for learning purposes. .NET library already has a generic LinkedList type. Mine is just for demonstrating the most common methods that apply to the concept of a linked list.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{