{"size": 440, "ext": "js", "max_stars_repo_path": "Dataset/Leetcode/train/67/413.js", "max_stars_repo_name": "kkcookies99/UAST", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Dataset/Leetcode/train/67/413.js", "max_issues_repo_name": "kkcookies99/UAST", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Dataset/Leetcode/train/67/413.js", "max_forks_repo_name": "kkcookies99/UAST", "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": 24.4444444444, "max_line_length": 54, "alphanum_fraction": 0.3545454545}
var XXX = function(a, b) {
    let i = a.length - 1;
    let j = b.length - 1;
    let result = [];
    let pre = 0;
    while(i > -1 || j > -1) {
        pre += (i > -1 && a[i] === '1') ? 1 : 0;
        pre += (j > -1 && b[j] === '1') ? 1 : 0;
        result.push((pre === 1 || pre === 3) ? 1 : 0);
        pre = pre > 1 ? 1 : 0;
        i--;
        j--;
    }
    if (pre === 1) result.push(1);
    return result.reverse().join('');
};

