function checkIsAlmostIncreasingSequence(array) {
    function checkIsArrayIncreased(array,index){
        for (let i = 0; i < array.length; i++) {
            if(i === index){
                continue
            }
            else if(array[i] > array[i + 1]){
                return false
            }
        };
        return true
    };
    for(let i = 0; i <array.length; i++){
        if(checkIsArrayIncreased(array,i)){
            return true
        }
    };
    return false
}
//  to obtain a strictly increasing sequence by removing no more than one element from the array.
to obtain a strictly increasing sequence by removing no more than one element from the array.
to obtain a strictly increasing sequence by removing no more than one element from the array .
function checkIsAlmostIncreasingSequence(array) {
    function checkIsArrayIncreased(array,index){
        for (let i = 0; i < array.length; i++) {
            if(i === index){
                continue
            }
            else if(array[i] > array[i + 1]){
                return false
            }
        };
        return true
    };
    for(let i = 0; i <array.length; i++){
        if(checkIsArrayIncreased(array,i)){
            return true
        }
    };
    return false
}
function checkIsAlmostIncreasingSequence ( array ) { function checkIsArrayIncreased ( array , index ) { for ( let i = 0 ; i < array . length ; i ++ ) { if ( i === index ) { continue } else if ( array [ i ] > array [ i + 1 ] ) { return false } } ; return true } ; for ( let i = 0 ; i < array . length ; i ++ ) { if ( checkIsArrayIncreased ( array , i ) ) { return true } } ; return false }
to obtain a strictly increasing sequence by removing no more than one element from the array.
to obtain a strictly increasing sequence by removing no more than one element from the array .