Skip to content

Instantly share code, notes, and snippets.

View nikmis's full-sized avatar

Nikhil Mishrikoti nikmis

View GitHub Profile
@nikmis
nikmis / singlyLinkedList.c
Created July 20, 2012 05:08
Singly Linked List Implementation
/* This implementation is a highly
* modified version taken from the book
* Algorithm Design Manual - Skiena.
*/
#include <stdio.h>
#include <stdlib.h>
#include "list.h"
void initList(list **l)
@nikmis
nikmis / listDeleteByNode.c
Created July 20, 2012 04:52
Delete Node from Singly Linked List
typedef struct list
{
int item;
struct list *next;
} list;
/* l - Head of the list
* node - Node to be deleted from the list.
*/
void listDeleteByNode(list **l, list *node)
@nikmis
nikmis / hello.c
Created July 19, 2012 05:18
Hello World
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}