Skip to content

Instantly share code, notes, and snippets.

View GregaMohorko's full-sized avatar

Gregor Mohorko GregaMohorko

View GitHub Profile
@GregaMohorko
GregaMohorko / BinarySearchTree.cpp
Created August 3, 2017 18:04
An implementation of Binary Search Tree data structure.
#include <sstream>
#include <iostream>
#include <ctime>
using namespace std;
struct element
{
element* next;
};
@GregaMohorko
GregaMohorko / QuickSort.cpp
Created August 5, 2017 09:12
An implementation of Quick Sort algorithm with median.
#include <sstream>
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <math.h>
using namespace std;
int divide(int* a, int bottom, int top);
void switchAt(int* a, int bottom, int top);
using System;
using System.Collections.Generic;
using System.Linq;
namespace GM.Security.Cryptography
{
public class SimpleRectangleCipher
{
private const string ALPHABET = "ABCDEFGHIJKLMNOPRSTUVZ";
private const char SPACE_REPLACEMENT = 'Q';