Skip to content

Instantly share code, notes, and snippets.

View ganeshran's full-sized avatar

Ganesh Ranganathan ganeshran

View GitHub Profile
@ganeshran
ganeshran / StackUsingDynamicArray
Last active January 18, 2017 17:13
Implementing Stack using Dynamic Array
using System;
namespace testingcode
{
public class StackBasedOnDynamicArray<T>
{
private T[] backingStorage;
private int size;
//Pointer to keep track of element at the top of the stack
private int top;
using System;
using System.Collections.Generic;
using AlgoPractise;
namespace testingcode
{
public class LinkedListProblems
{
public Node TestList { get; set; }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
namespace AlgoPractise
{
public class NodeDouble
@ganeshran
ganeshran / LinkedList.cs
Created January 13, 2017 16:44
LinkedListOperations
using System;
using System.Reflection.Emit;
using System.Text;
using System.Threading;
namespace AlgoPractise
{
public class Node
{
@ganeshran
ganeshran / TowerOfHanoi.cs
Created January 13, 2017 14:20
Tower Of Hanoi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace testingcode
{
public class TowerOfHanoiPuzzle
{
public int NumberOfdiscs { get; set; }
using System;
public class Program
{
public static void Main()
{
var obj = new Child();
}
}
#can't convert Symbol into Integer (Line 9
<div class="row text-center">
<div class="col-md-3 sidebar">
<%= form_for(@filter, products_path) do |f| %>
<%= f.text_field :books %><br />
<div class="actions">
<%= f.submit "Submit", class: "button small radius" %>