Skip to content

Instantly share code, notes, and snippets.

@EshwaryForReasons
EshwaryForReasons / Containers.cpp
Created October 24, 2023 13:34
C++ implementations of common container types
//Author: Eshwary Mishra 2023
/**
* This file will give implementations for common containers implemented in C++
*
* For simplicity we will use int as our type
*/
#include <iostream>
@EshwaryForReasons
EshwaryForReasons / Search Algorithms.cpp
Created October 24, 2023 13:34
C++ implementations of common search algorithms
//Author: Eshwary Mishra 2023
/**
* This file will give implementations for common searching algorithms implemented in C++
*
* For simplicity, we will use a vector for our lists. It should be noted that this can be copy
* paste replaced for any list type that implements the [a] operator for finding an element at position
* a and the internal element implements the <, >, and == operators. If either is not the case, then
* the implementation must be modified.
*
@EshwaryForReasons
EshwaryForReasons / Sorting Algorithms.cpp
Created October 24, 2023 13:33
C++ implementations of common sorting algorithms
//Author: Eshwary Mishra 2023
/**
* This file will give implementations for common sorting algorithms implemented in C++
*
* For simplicity, we will use a vector for our lists. It should be noted that this can be copy
* paste replaced for any list type that implements the [a] operator for finding an element at position
* a and the internal element implements the <, >, and == operators. If either is not the case, then
* the implementation must be modified.
*
Rem This will set the right click menu to the classic version
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve