Skip to content

Instantly share code, notes, and snippets.

View kazh98's full-sized avatar
😀
Set your status

Kazuhiro HISHINUMA kazh98

😀
Set your status
View GitHub Profile
@kazh98
kazh98 / bubbleSort.hpp
Created July 31, 2011 17:07
Bubble Sort
/* Bubble Sort [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_BUBBLESORTH
#define __INC_BUBBLESORTH
#include <algorithm>
/** Sorts an array by Bubble Sort Algorithm
@kazh98
kazh98 / quickSort.hpp
Created July 31, 2011 17:56
Quick Sort
/* Quick Sort [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_QUICKSORTH
#define __INC_QUICKSORTH
#include <iterator>
#include <algorithm>
@kazh98
kazh98 / mergeSort.hpp
Created July 31, 2011 18:31
Merge Sort
/* Merge Sort [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_MERGESORTH
#define __INC_MERGESORTH
#include <iterator>
#include <algorithm>
@kazh98
kazh98 / binarySearch.hpp
Created August 1, 2011 11:33
Binary Search
/* Binary Search [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_BINARYSEARCH
#define __INC_BINARYSEARCH
#include <stddef.h>
#include <iterator>
@kazh98
kazh98 / insertionSort.hpp
Created August 8, 2011 07:48
Insertion Sort
/* Insertion Sort [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_INSERTIONSORTH
#define __INC_INSERTIONSORTH
#include <iterator>
#include <algorithm>
@kazh98
kazh98 / combSort.hpp
Created August 8, 2011 08:11
Comb Sort
/* Comb Sort [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_COMBSORTH
#define __INC_COMBSORTH
#include <iterator>
#include <algorithm>
#include "insertionSort.hpp"
@kazh98
kazh98 / linearSearch.hpp
Created August 8, 2011 08:26
Linear Search
/* Linear Search [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_LINEARSEARCHH
#define __INC_LINEARSEARCHH
#include <iterator>
/** Search the item of the array by Linear Search Algorithm
@kazh98
kazh98 / gnomeSort.hpp
Created August 9, 2011 09:50
Gnome Sort
/* Gnome Sort [License: CC-BY-SA]
* - Copyright(C) 2011 Kazh. All Rights Reserved.
*/
#ifndef __INC_GNOMESORTH
#define __INC_GNOMESORTH
#include <iterator>
#include <algorithm>
@kazh98
kazh98 / ProbC.java
Created August 22, 2011 15:28
Kazh's implement of ACM/ICPC 2011 Problem C
public
class ProbC
{
private static
final int ColorNum = 6;
public static
void main (
String args[ ]
)
@kazh98
kazh98 / dblPtrSample.c
Created August 23, 2011 08:50
Double pointer sample
#include <stdio.h>
void sampleA (
int * a,
int * b
)
{
a = b;
}