Skip to content

Instantly share code, notes, and snippets.

View Madhivarman's full-sized avatar
🏠
Working from home

Madhivarman Madhivarman

🏠
Working from home
  • Pluto7
  • Bengaluru
View GitHub Profile
class Node:
#creation of node
def __init__(self,data):
self.data = data #assign data
self.next = None #initialize null
class LinkedList:
@Madhivarman
Madhivarman / SprialMatrix.java
Last active September 9, 2017 15:13
Spiral Matrix logic implemented in java
//spiral matrix method is used
import java.io.*;
import java.util.Scanner;
public class BrainTeaser{
static int[] array = new int[200];
static int userchoice;
//brainFunction called here
@Madhivarman
Madhivarman / HashingTable.java
Last active September 5, 2017 14:19
Hashing Table concept implemented in java
import java.io.*;
import java.util.Scanner;
class HashingTable{
static String userchoice;
static int capacity;
static int array[];
//constructor function called
public HashingTable(int capacity){
this.capacity = nextPrime(capacity);