Skip to content

Instantly share code, notes, and snippets.

View mesterum's full-sized avatar

Mihai Manole mesterum

  • http://www.johnabbott.qc.ca/
  • Piatra Neamț, România
  • 07:23 (UTC +03:00)
  • X @MihaiManole8
View GitHub Profile
@Sebbyastian
Sebbyastian / ack.c
Last active April 4, 2022 21:23
Ackermann function in recursive and non-recursive form
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int ack_recursive(int m, int n) {
if (m == 0) {
return n + 1;
}