Git Product home page Git Product logo

thomas-george-t / hackerrank-the-linux-shell-challenges-solutions Goto Github PK

View Code? Open in Web Editor NEW
77.0 4.0 48.0 92 KB

Complete Solutions and related tutorials for the Linux Shell - Bash, text processing, Arrays in Bash, Grep Sed Awk Challenges on HackerRank

License: MIT License

Shell 100.00%
linux bash hackerrank hackerrank-solutions shell linux-shell challenge tutorial text-processing unix

hackerrank-the-linux-shell-challenges-solutions's Introduction

License ViewCount

Hi there ๐Ÿ‘‹ I'm Thomas George Thomas,

A Data engineer passionate about Data Science ๐Ÿ“Š. I like automating, building scalable pipelines, improving and optimizing systems. I am a Strong Advocate for ๐Ÿ“œ open source, โ˜๏ธ Cloud computing, ๐Ÿš€ DevOps, ๐Ÿ†• Innovation and Automation ๐Ÿค–

  • ๐ŸŒฑ Iโ€™m currently pursuing Masters in Data Analytics Engineering at Northeastern University, Boston
  • โšก Fun fact: I strongly believe in the Chaos theory: Even in unpredictable environments with seemingly random oddities and irregularities lies a predictable & sensible pattern not seen initially.
  • ๐Ÿ’ก I'm interested in all things data: Big Data, Cloud, Machine Learning and Data Science
  • ๐Ÿ’ฌ Talk to me about Formula 1 ๐ŸŽ๏ธ, Memes, Anime, Movies ๐ŸŽฅ, Genshin Impact ๐ŸŽฎ, Amateur Photography ๐Ÿ“ธ

My skills include

Hadoop Spark AWS Scala Python linux MySQL Bitbucket Git Bamboo linux Kafka linux Tableau


A problem can be solved in a 100 different ways and There's always an easier way to solve a problem.
You miss 100% of the shots you don't take.


hackerrank-the-linux-shell-challenges-solutions's People

Contributors

arsfiqball avatar madhurthareja avatar phuongvo1711 avatar sounishnath003 avatar thomas-george-t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hackerrank-the-linux-shell-challenges-solutions's Issues

[Solution]: Functions and Fractals - Recursive Trees - Bash!

Hello! โœŒ

I started learning Shell Scripting and started practicing at Hackerrank and while practicing questions I stuck at Functions and Fractals question and google search to get the idea of solution I found your repo as my first result!

As a beginner who started learning Shell scripting, I found your this repository very helpful, each command I first learning from youtube & when stuck I reach out to this repository.

The mentioned question does not have a solution, nor I could solve it, I found an answer, and want to contribute to this repository with the solution I got.

declare -A a

# credits to https://github.com/MaskRay/HackerRank/blob/master/shell/fractal-trees-all.sh
# d - depth
# l = length
# r = row
# c = column

f() {
    local d=$1 l=$2 r=$3 c=$4
    [[ $d -eq 0 ]] && return
    for ((i=l; i; i--)); do
        a[$((r-i)).$c]=1
    done
    ((r -= l))
    for ((i=l; i; i--)); do
        a[$((r-i)).$((c-i))]=1
        a[$((r-i)).$((c+i))]=1
    done
    f $((d-1)) $((l/2)) $((r-l)) $((c-l))
    f $((d-1)) $((l/2)) $((r-l)) $((c+l))
}
read n
f $n 16 63 49
for ((i=0; i<63; i++)); do
    for ((j=0; j<100; j++)); do
        if [[ ${a[$i.$j]} ]]; then
            printf 1
        else
            printf _
        fi
    done
    echo
done

I hope this adds a complete mark to your repository and it will eventually help people in the community!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.