Algorithms Pseudocode suggest change

Functions

As long as the function name, return statement and parameters are clear, you’re fine.

def incr n
    return n + 1

or

let incr(n) = n + 1

or

function incr (n)
    return n + 1

are all quite clear, so you may use them. Try not to be ambiguous with a variable affectation

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents