We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
replace_char_at_position() {
local cadena="2"
local nuevo_caracter="{cadena:0:posicion}{cadena:((posicion + 1))} "
}
count=()
aux=()
while read n
do
count+=({count[@]}; do
replace_char_at_position {aux[@]}"
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Remove the First Capital Letter from Each Element
You are viewing a single comment's thread. Return to all comments →
!/bin/bash
replace_char_at_position() { local cadena="2" local nuevo_caracter="{cadena:0:posicion}{cadena:((posicion + 1))} " } count=() aux=() while read n do count+=({count[@]}; do replace_char_at_position {aux[@]}"