Make all characters equal to character c
for ( var ch = " " . charCodeAt ( 0 ) ; ch <= " " . charCodeAt ( 0 ) ; ch ++ ) { count = Math . min ( count , n - L [ ch - " " . charCodeAt ( 0 ) ] - R [ ch - " " . charCodeAt ( 0 ) ] ) ; }