Skip to content

Instantly share code, notes, and snippets.

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

Kief H. Shemul shemul

🏠
Working from home
  • TomTom, Delivery Hero
  • Amsterdam, Netherlands
View GitHub Profile
@shemul
shemul / linkList.cpp
Created November 24, 2014 20:50
LinkedList
@shemul
shemul / heap.cpp
Created November 25, 2014 10:51
CBT heap
#include <iostream>
using namespace std;
void max_heapfy(int *p , int i , int n)
{
int lc = 2*i + 1 ;
int rc = 2*i + 2 ;
int li;
if(lc < n && p[lc] > p[i])
@shemul
shemul / mergesort.cpp
Created March 2, 2015 18:51
mergeSort
// Merge Sort.cpp : Defines the entry point for the console application.
//k
#include <iostream>
#include <stdlib.h>
using namespace std;
void Merge( int *A,int *L,int *R,int lCount,int rCount )
{
@shemul
shemul / mergesort.cpp
Created March 2, 2015 18:52
bouble sort with file I/O
// File.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#define MAX_SIZE 100000
using namespace std;
struct Entry
@shemul
shemul / shell_sort.cpp
Last active August 29, 2015 14:16
shell sort
//shell sort
#include <iostream>
using namespace std;
int iCount (int *A,int size)
{
int counter = 0 ;
@shemul
shemul / bst.cpp
Created March 28, 2015 19:01
BST implementation by Zitu Sir
#include <iostream>
using namespace std;
struct BSTnode
{
int data;
BSTnode* left;
BSTnode* right;
};
@shemul
shemul / android.java
Last active August 29, 2015 14:17
toast,dialoge,notification android
package com.example.here;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.app.AlertDialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.DialogInterface;
import android.os.Bundle;
@shemul
shemul / gist:1ebaa8c7da57f860c542
Created March 30, 2015 07:50
assembly calculations
.model small
.stack 100h
.data
MSG1 DB 'A FOR ADDITION S FOR SUB... : $'
MSG2 DB 'INPUT FOR ADDITION$'
INPUT_1 DB 'FIRST NUMBER : $'
INPUT_2 DB 'SECOND NUMBER : $'
@shemul
shemul / vawel.asm
Created March 30, 2015 13:39
vowel , consonant , number test
.MODEL SMALL
.STACK 100H
.DATA
input_line db ?
MSG1 DB 'Enter Char : $'
str1 db ' is a vowel$'
str2 db ' is a consonant$'
str3 db ' is a number$'
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'Enter the character : $'
PROMPT_2 DB 0DH,0AH,'The ASCII code of the given number in binary form is : $'
PROMPT_3 DB 0DH,0AH,'The number of 1 bits in ASCII code are : $'
.CODE
MAIN PROC