## Validating phone numbers Hackerrank solution

Validating phone numbers Hackerrank solution Let’s dive into the interesting topic of regular expressions! You are given some input, and you are required to check whether they are valid mobile …

## Regex Substitution HackerRank Solution Python

Regex Substitution Hackerrank Solution The re.sub() tool (sub stands for substitution) evaluates a pattern and, for each valid match, it calls a method (or lambda).The method is called for all matches and can be used to modify strings in …

## Reduce Function Hackerrank Solution Python

Given a list of rational numbers,find their product. ConceptThe reduce() function applies a function of two arguments cumulatively on a list of objects in succession from left to right to reduce it …

## Validating Email Addresses With a Filter Hackerrank solution

Validating Email Addresses With a Filter Hackerrank Solution You are given an integer N followed by N email addresses. Your task is to print a list containing only valid email addresses in lexicographical order. Valid email …

## Any or All HackerRank Solution Python

Any or All HackerRank Solution Python any() This expression returns True if any element of the iterable is true.If the iterable is empty, it will return False. Code all() This expression returns True if all of the elements of …

## Athlete Sort Hackerrank Solution Python

Athlete Sort Hackerrank Solution Python You are given a spreadsheet that contains a list of N athletes and their details (such as age, height, weight and so on). You are required to …

## Input() Hackerrank solution python

Input() Hackerrank solution python input() In Python 2, the expression input() is equivalent to eval(raw _input(prompt)). Code Task You are given a polynomial P of a single indeterminate (or variable), x.You are also given the values of x and k. Your task …

## Check Subset – Python HackerRank Solution

Check Subset – Python HackerRank Solution You are given two sets,A and B.Your job is to find whether set A is a subset of set B. If set A is subset of set B, print True.If set A is not a …

## The Captain’s Room – Hackerrank Solution Python

The Captain’s Room – Hackerrank Solution Python Mr. Anant Asankhya is the manager at the INFINITE hotel. The hotel has an infinite amount of rooms. One fine day, a finite number of tourists come …

## Iterables and Iterators – Hackerrank Solution Python

Iterables and Iterators Hackerrank solution python The itertools module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an iterator algebra making it …