HackerRank Python ๐ Domain Solutions
November 1, 2020 ยท View on GitHub
HackerRank is an online platform that offers programmers the ability to test their sills, practice and learn something new. The problem sets on HackerRank are divided in Domains & Tutorials, and the following are the domains & tutorials on HackerRank:
Domains
This repository contains solutions to the Python domain part of HackerRank. My HackerRank profile can be viewed here.
I have also solved other domains on HackerRank that can be viewed at:
| Domain | Solutions Repository Link |
|---|---|
| Algorithms | Solutions Repository |
| Data Structures | Solutions Repository |
| Java | Solutions Repository |
| Interview Preparation Kit | Solutions Repository |
The Python Domain is further Divided into the following sub-domains.
Sub Domains & Problems (+Solutions) in the Python Domain
Quick Links โก : Introduction | Basic Data Types | Strings | Sets | Math | Itertools | Collections | Data and Time | Errors and Exceptions | Classes | Built-Ins | Python Functionals | Regex and Parsing | XML | Closures and Decorators | NumPy | Debugging |
Introduction ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Say "Hello World" With Python | Easy | Solution |
| Python If-Else | Easy | Solution |
| Arithmetic Operators | Easy | Solution |
| Python Division | Easy | Solution |
| Loops | Easy | Solution |
| Write a Function | Medium | Solution |
| Print Function | Easy | Solution |
Basic Data Types ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| List Comprehensions | Easy | Solution |
| Find the Runner-Up Score | Easy | Solution |
| Nested Lists | Easy | Solution |
| Finding The Percentage | Easy | Solution |
| Lists | Easy | Solution |
| Tuples | Easy | Solution |
Strings ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| sWAP cASE | Easy | Solution |
| String Split and Join | Easy | Solution |
| What's Your Name | Easy | Solution |
| Mutations | Easy | Solution |
| Find a String | Easy | Solution |
| String Validators | Easy | Solution |
| Text Alignment | Easy | Solution |
| Text Wrap | Easy | Solution |
| Designer Door Mat | Easy | Solution |
| String Formatting | Easy | Solution |
| Alphabet Rangoli | Easy | Solution |
| Capatalize! | Easy | Solution |
| The Minion Game | Medium | Solution |
| Merge The Tools | Medium | Solution |
Sets ๐
Math ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Polar Coordinates | Easy | Solution |
| Find Angle MBC | Medium | Solution |
| Triangle Quest 2 | Medium | Solution |
| Mod Divmod | Easy | Solution |
| Power - Mod Power | Easy | Solution |
| Integers Come in all sizes | Easy | Solution |
| Triangle Quest | Easy | Solution |
Itertools ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| itertools.product() | Easy | Solution |
| itertools.permutations() | Easy | Solution |
| itertools.combinations() | Easy | Solution |
| itertools.combinations_with_replacement() | Easy | Solution |
| Compress the String! | Medium | Solution |
| Iterables & Iterators | Medium | Solution |
| Maximize It! | Hard | Solution |
Collections ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| collections.Counter() | Easy | Solution |
| DefaultDict Tutorial | Easy | Solution |
| Collections.namedTuple() | Easy | Solution |
| Collections.orderedDict() | Easy | Solution |
| Word Order | Medium | Solution |
| Collections.dequeue() | Easy | Solution |
| Company Logo | Medium | Solution |
| Piling Up! | Medium | Solution |
Date and Time ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Calender Module | Easy | Solution |
| Time Delta | Medium | Solution |
Errors and Exceptions ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Exceptions | Easy | Solution |
| Incorrect Regex | Easy | Solution |
Classes ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Class 2 - Find the Torsional Angle | Easy | Solution |
| Classes: Dealing with Complex Numbers | Medium | Solution |
Built Ins ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Zipped! | Easy | Solution |
| Input() | Easy | Solution |
| Python Evaluation | Easy | Solution |
| Athlete Sort | Medium | Solution |
| Any or All | Easy | Solution |
| ginortS | Medium | Solution |
Python Functionals ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Map and Lambda Function | Easy | Solution |
| Validating Email Address with Filter | Medium | Solution |
| Reduce Function | Medium | Solution |
Regex and Parsing ๐
XML ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| XML 1 - Find the Score | Easy | Solution |
| XML 2 - Find the Maximum Depth | Easy | Solution |
Closures and Decorators ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Standardize Mobile Numbers Using Decorators | Easy | Solution |
| Decorators 2 - Name Directory | Easy | Solution |
Numpy ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Arrays | Easy | Solution |
| Shape and Reshape | Easy | Solution |
| Transpose and Flatten | Easy | Solution |
| Concatenate | Easy | Solution |
| Zeroes and Ones | Easy | Solution |
| Eye and Identity | Easy | Solution |
| Array Mathematics | Easy | Solution |
| Floor, Ciel and Rint | Easy | Solution |
| Sum and Prod | Easy | Solution |
| Min and Max | Easy | Solution |
| Mean, var and Std | Easy | Solution |
| Dot and Cross | Easy | Solution |
| Inner and Outer | Easy | Solution |
| Polynomials | Easy | Solution |
| Linear Algebra | Easy | Solution |
Debugging ๐
| Problem | Difficulty | Solution Link |
|---|---|---|
| Word Score | Medium | Solution |
| Default Arguments | Medium | Solution |