// // Created by martial.simon on 2/24/25. // void ref_swap(int& a, int& b) { int tmp = a; a = b; b = tmp; } void ptr_swap(int* a, int* b) { if (!a || !b) return; int tmp = *a; *a = *b; *b = tmp; }