freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/rosetta-code/ackermann-function.arabic.md

948 B

title id challengeType videoUrl localeTitle
Ackermann function 594810f028c0303b75339acf 5

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(typeof ack === "function", "<code>ack</code> is a function.");'
  - text: ''
    testString: 'assert(ack(0, 0) === 1, "<code>ack(0, 0)</code> should return 1.");'
  - text: ''
    testString: 'assert(ack(1, 1) === 3, "<code>ack(1, 1)</code> should return 3.");'
  - text: ''
    testString: 'assert(ack(2, 5) === 13, "<code>ack(2, 5)</code> should return 13.");'
  - text: ''
    testString: 'assert(ack(3, 3) === 61, "<code>ack(3, 3)</code> should return 61.");'

Challenge Seed

function ack (m, n) {
  // Good luck!
}

Solution

// solution required