Skip to content

Instantly share code, notes, and snippets.

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

Kinshuk Bairagi kingster

🏠
Working from home
View GitHub Profile
@kingster
kingster / dijkstra.c
Created November 5, 2012 11:27
DIJKSRTRA's ALGORITHM C
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string.h>
#include<math.h>
#include<time.h>
#include<string.h>
using namespace std;
#define IN 999
@kingster
kingster / prefix.c
Created August 28, 2012 15:07
Prefix Expression Evaluation in C
#include<stdio.h>
#include <stdlib.h>
#include <string.h>
#include<math.h>
#define STACK_MAX 500
#define OPERAND 10
#define OPERATOR 20
/* stack structure */
@kingster
kingster / ifelse.asm
Created September 22, 2011 13:14
8051 Assembly IF/ELSE
CJNE A, #27, NOT_EQL
EQL: ;A=27
; Your Code Here
SJMP END_CMP
NOT_EQL: ; Your Code Here
JC A_LESS
A_GREATER: ;A > 27
; Your Code Here
SJMP END_CMP
A_LESS: ;A < 27