Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, May 1, 2017

Codefights Sample Solution shapeArea(n)


function shapeArea(n) {
    if(n==1){
        return 1;
    } else {
        return 4*(n-1) + shapeArea(n-1);
    }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts