「✨」 feat: finished ex02
This commit is contained in:
36
ex02/PmergeMe.hpp
Normal file
36
ex02/PmergeMe.hpp
Normal file
@ -0,0 +1,36 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* PmergeMe.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/06/04 13:27:20 by adjoly #+# #+# */
|
||||
/* Updated: 2025/06/04 13:45:07 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <deque>
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#define auto __auto_type
|
||||
|
||||
#define range(x) \
|
||||
x.begin(); \
|
||||
it != x.end(); \
|
||||
it++
|
||||
|
||||
std::vector<int> parseInput(int argc, char **argv);
|
||||
|
||||
template <typename Container> void printContainer(const Container &container);
|
||||
|
||||
void sortAndTime(std::vector<int> &vec, std::deque<int> &deq);
|
||||
|
||||
template <typename Container> void _fordJohnsonSort(Container &container);
|
||||
|
||||
template <typename Container> void _binaryInsert(Container &sorted, int value);
|
Reference in New Issue
Block a user