{"size": 623, "ext": "js", "max_stars_repo_path": "JS-Fundamentals/2016.12/08.Arrays/04_MaxIncreasing.js", "max_stars_repo_name": "zachdimitrov/Homework", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "JS-Fundamentals/2016.12/08.Arrays/04_MaxIncreasing.js", "max_issues_repo_name": "zachdimitrov/Homework", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "JS-Fundamentals/2016.12/08.Arrays/04_MaxIncreasing.js", "max_forks_repo_name": "zachdimitrov/Homework", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.0740740741, "max_line_length": 75, "alphanum_fraction": 0.3723916533}
function solve(args) {
    let max = 0,
        current = 1,
        n = +args[0],
        arr = args.slice(1);

    console.log(n + '---' + arr.join('|'));

    for (var i = 0; i < n; i += 1) {
        var previous = +arr[i],
            next = +arr[i + 1];
        if (previous < next) {
            current += 1;
        } else {
            if (current > max) {
                max = current;
            }
            current = 1;
        }
    }
    return max;
}

// tests

console.log(solve(['8', '7', '3', '2', '3', '4', '2', '2', '4']));
console.log(solve(['8', '1', '3', '8', '2', '33', '887', '2212', '3322']));