Posts
Data Include Me
Cancel

Compress the String! (Python 3)

URL : https://www.hackerrank.com/challenges/compress-the-string/problem In this task, we would like for you to appreciate the usefulness of the groupby() function of itertools . T...

Capitalize! (Python 3)

URL : https://www.hackerrank.com/challenges/capitalize/problem You are asked to ensure that the first and last names of people begin with a capital letter in their passports. For examp...

Arithmetic Operators (Python 3)

URL : https://www.hackerrank.com/challenges/python-arithmetic-operators/problem Task The provided code stub reads two integers from STDIN, and . Add code to print three lin...

Alphabet Rangoli (Python 3)

URL : https://www.hackerrank.com/challenges/alphabet-rangoli/problem You are given an integer, N. Your task is to print an alphabet rangoli of size N. (Rangoli is a form of Indian...

Time Conversion (Python 3)

URL : https://www.hackerrank.com/challenges/time-conversion/problem Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. Note: Midnight is 12:00:00AM on ...

Staircase (Python 3)

URL : https://www.hackerrank.com/challenges/staircase/problem Consider a staircase of size n = 4: # ## ### #### Observe that its base and height are both equal to n, an...

Simple Array Sum (Python 3)

URL : https://www.hackerrank.com/challenges/simple-array-sum/problem Given an array of integers, find the sum of its elements. For example, if the array ar = [1,2,3] 1 + 2+ 3 = 6 so return 6....

Plus Minus (Python 3)

URL : https://www.hackerrank.com/challenges/plus-minus/problem Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero. Print the decimal value o...

Mini-Max Sum (Python 3)

URL : https://www.hackerrank.com/challenges/mini-max-sum/problem Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four o...

Diagonal Difference (Python 3)

URL : https://www.hackerrank.com/challenges/diagonal-difference/problem Given a square matrix, calculate the absolute difference between the sums of its diagonals. For exampl...