hackerrank-solution

Alphabet Rangoli in Python - HackerRank Solution

Problem You are given an integer, N . Your task is to print an alphabet rangoli of size N . (Rangoli is a form of Indian folk art based on c...

Ankur Ranpariya 14 Dec, 2021

String Formatting in Python - HackerRank Solution

Problem Given an integer, , print the following values for each integer i from 1 to 10 : Decimal Octal Hexadecimal (capitalized) Binary Fu...

Ankur Ranpariya 13 Dec, 2021

sWAP cASE in Python - HackerRank Solution

Problem You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase letters and vice v...

Ankur Ranpariya 4 Dec, 2021

What's Your Name? in Python - HackerRank Solution

Program You are given the firstname and lastname of a person on two different lines. Your task is to read them and print the following: H...

Ankur Ranpariya 4 Dec, 2021

Tuples in Python - Hacker Rank Solution

Problem Task Given an integer, n, and  n space-separated integers as input, create a tuple, t, of those n integers. Then compute and print t...

Ankur Ranpariya 4 Dec, 2021

Lists in Python - Hacker Rank Solution

Problem  Consider a list (list = []). You can perform the following commands: insert i e: Insert integer e at position i. print: Print the l...

Ankur Ranpariya 4 Dec, 2021

Nested Lists in Python - HackerRank Solution

Problem  Nested list Hackerrank solution Given the names and grades for each student in a class of students, store them in a nested list and...

Ankur Ranpariya 2 Dec, 2021

Find the Runner-Up Score! in Python - HackerRank Solution

Problem Given the participants' score sheet for your University Sports Day, you are required to find the runner-up score. You are given ...

Ankur Ranpariya 1 Dec, 2021

List Comprehensions in Python - HackerRank Solution

Problem Let's learn about list comprehensions! You are given three integers x and y representing the dimensions of a cuboid along with a...

Ankur Ranpariya 30 Nov, 2021

Finding the percentage in Python - HackerRank Solution

Problem The provided code stub will read in a dictionary containing key/value pairs of name:[marks] for a list of students. Print the averag...

Ankur Ranpariya 3 Nov, 2021