Skip to content

Instantly share code, notes, and snippets.

View rishkarajgi's full-sized avatar
🎯
Focusing

Rishabh Karajgi rishkarajgi

🎯
Focusing
View GitHub Profile
@rishkarajgi
rishkarajgi / README-Template.md
Created December 20, 2018 10:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rishkarajgi
rishkarajgi / LinkedList.py
Created May 27, 2015 11:50
Linked List implementation in Python
class Node(object):
def __init__ (self,d,n = None):
self.data = d
self.next_node = n
def get_next (self):
return self.next_node
def set_next (self,n):
self.next_node = n
def get_data (self):
return self.data
@rishkarajgi
rishkarajgi / topological_sort.cpp
Created May 26, 2015 21:57
My implementation of topological sort in C++
#include<iostream>
using namespace std;
struct node_2
{
int incoming;
int data ;
int outgoing_num ;
int outgoing[100] ;
int check;
@rishkarajgi
rishkarajgi / stack_to_queue.cpp
Created May 26, 2015 21:56
Converting a stack to a queue
#include<iostream>
using namespace std;
class queue
{
private:
int data[10];
int front ;
int rear ;
int size ;
public :
@rishkarajgi
rishkarajgi / insertion.cpp
Created May 26, 2015 21:55
Insertion sort in a linked list
#include<iostream>
using namespace std;
struct node
{
int data ;
node * next ;
};
class list
@rishkarajgi
rishkarajgi / radix_sort.cpp
Created May 26, 2015 21:54
My implementation of Radix sort in C++
#include<iostream>
using namespace std;
struct node
{
int data ;
node * next ;
};
class list
@rishkarajgi
rishkarajgi / postfix_eval.cpp
Created May 26, 2015 21:53
Postfix expression evaluation in C++
#include<iostream>
#include<cstring>
#include<cstdlib>
using namespace std;
struct node
{
int data ;
node *next ;
};
class stack
@rishkarajgi
rishkarajgi / postfix_to_infix.cpp
Created May 26, 2015 21:51
Postfix to Infix conversion in C++
#include<iostream>
#include<cstring>
using namespace std;
struct node
{
char data ;
node *next ;
};
class stack
{
@rishkarajgi
rishkarajgi / list_of_double.cpp
Created May 26, 2015 21:49
Linked list of doubly linked lists in C++
#include<iostream>
using namespace std;
struct node_1
{
int data;
node_1 *next ;
node_1 *prev ;
};
struct node_2
@rishkarajgi
rishkarajgi / list_of_list.cpp
Created May 26, 2015 21:49
Linked list of linked lists in C++
#include<iostream>
using namespace std;
struct node_1
{
int data;
node_1 *next ;
};
struct node_2
{