#include “stats.h”
int cmp(Stats *stats, uint32_t x, uint32_t y) {
stats->compares += 1;
Copyright By PowCoder代写 加微信 powcoder
if (x < y) { return -1; } else if (x > y) {
uint32_t move(Stats *stats, uint32_t x) {
stats->moves += 1;
void swap(Stats *stats, uint32_t *x, uint32_t *y) {
stats->moves += 3;
uint32_t t = *x;
void reset(Stats *stats) {
stats->moves = stats->compares = 0;
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com