Sliding I Calculation for removing I
m [ s [ i ] . charCodeAt ( 0 ) ] ++ ; if ( m [ s [ i ] . charCodeAt ( 0 ) ] > 0 ) count ++ ; i ++ ; } } j ++ ; } if ( ans != Number . MAX_VALUE ) return ( s ) . join ( " " ) . substring ( start , ( start + ans ) ) ; else return " " ; }