Skip to content

This repository contains ⁠CounterUint, a small C++ helper class designed for the 42 School cpp-module-09 assignment that implements merge-insertion sort.

Notifications You must be signed in to change notification settings

akyoshid/counter-uint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

CounterUint — comparison-counting wrapper for unsigned int

This repository contains ⁠CounterUint, a small C++ helper class designed for the 42 School cpp-module-09 assignment that implements merge-insertion sort. ⁠CounterUint wraps an ⁠unsigned int and overloads comparison operators to count comparisons precisely. Use ⁠CounterUint as the element type in your containers (e.g., ⁠std::vector, ⁠std::deque) so that every comparison performed by your sorting algorithm increments an internal counter. After sorting, call ⁠getCompareCount() to obtain the exact number of comparisons performed.

About

This repository contains ⁠CounterUint, a small C++ helper class designed for the 42 School cpp-module-09 assignment that implements merge-insertion sort.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages