Hackerrank – Looping with Numbers
Problem Statement A description of the problem can be found on Hackerrank. Solution
1 2 3 4 5 6 |
#!/bin/bash for i in {1..50} do echo $i done |
Solution also available on my GitHub.
Problem Statement A description of the problem can be found on Hackerrank. Solution
1 2 3 4 5 6 |
#!/bin/bash for i in {1..50} do echo $i done |
Solution also available on my GitHub.
Problem Statement A description of the problem can be found on Hackerrank. Solution
1 2 3 4 |
#!/bin/bash read name echo "Welcome $name" |
Solutions also available on my GitHub.
Problem Statement A description of the problem can be found on Hackerrank. Solution
1 2 3 4 5 6 |
#!/bin/bash for i in {1..99..2} do echo $i done |
All solutions are also available on my GitHub.
Problem Statement A description of the problem can be found on Hackerrank. Solution
1 2 3 |
#!/bin/bash echo "HELLO" |
All solutions are also available on my GitHub.
Problem Statement A description of the problem can be found on Hackerrank. Solution After reading all numbers in array, you have to filter this array according to three conditions – number greater than zero, lower then zero and equals to zero. Count the subarrays and divide by array length. I created solution in 4 languages: […]