Memory limit


  • 0
    D

    I've got memory limit with this code but 17/17 passed
    ...
    counter=1
    while (( $(head -n1 file.txt | wc -w) >= $counter ))
    do
    cut -d" " -f$counter file.txt | paste -s -d" "
    counter=$(($counter+1))
    done
    ...


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.