summaryrefslogtreecommitdiff
path: root/algo1w2/main.h
blob: 4bc71fd08c2fb479891bb8448315ee4b3e3de94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

#define swap(a, b) { int t = (a); (a) = (b); (b) = (t); }

#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))

void print_arr(int*, unsigned);