HackerRank
HackerRank copied to clipboard
HackerRank solutions in C#/Java/C++/Python
trafficstars
Solutions to problems on HackerRank.
If you are interested in helping or have a solution in a different language feel free to make a pull request.
Algorithms
Warmup
| Title | Solution | Difficulty | Points |
|---|---|---|---|
| Solve Me First |
|
Easy | 1 |
| Simple Array Sum |
|
Easy | 10 |
| Compare the Triplets |
|
Easy | 10 |
| A Very Big Sum |
|
Easy | 10 |
| Diagonal Difference |
|
Easy | 10 |
| Plus Minus |
|
Easy | 10 |
| Staircase |
|
Easy | 10 |
| Mini-Max Sum |
|
Easy | 10 |
| Time Conversion |
|
Easy | 15 |
| Birthday Cake Candles |
|
Easy | 10 |
Implementation
| Title | Solution | Difficulty | Points |
|---|---|---|---|
| Grading Students |
|
Easy | 10 |
| Apple and Orange |
|
Easy | 10 |
| Kangaroo |
|
Easy | 10 |
| Between Two Sets |
|
Easy | 10 |
| Breaking the Records |
|
Easy | 10 |
| Birthday Chocolate |
|
Easy | 10 |
| Divisible Sum Pairs |
|
Easy | 10 |
| Migratory Birds |
|
Easy | 10 |
| Day of the Programmer |
|
Easy | 15 |
| Bon Appétit |
|
Easy | 10 |
| Sock Merchant |
|
Easy | 10 |
| Drawing Book |
|
Easy | 10 |
| Counting Valleys |
|
Easy | 15 |
| Electronics Shop |
|
Easy | 15 |
| Cats and a Mouse |
|
Easy | 15 |
| Viral Advertising |
|
Easy | 15 |
| Angry Professor |
|
Easy | 20 |
| Find Digits |
|
Easy | 25 |
| Designer PDF Viewer |
|
Easy | 20 |
| Service Lane |
|
Easy | 20 |
| The Hurdle Race |
|
Easy | 15 |
| Beautiful Days at the Movies |
|
Easy | 15 |
| Utopian Tree |
|
Easy | 20 |
Strings
| Title | Solution | Difficulty | Points |
|---|---|---|---|
| Super Reduced String |
|
Easy | 10 |
| CamelCase |
|
Easy | 15 |
| Strong Password |
|
Easy | 15 |
| Alternating Characters |
|
Easy | 20 |
| HackerRank in a String! |
|
Easy | 20 |
Sorting
| Title | Solution | Difficulty | Points |
|---|---|---|---|
| Intro to Tutorial Challenges |
|
Easy | 30 |
| Counting Sort 2 |
|
Easy | 30 |
Python
Introduction
| Title | Solution | Difficulty | Points |
|---|---|---|---|
| Say "Hello, World!" With Python |
|
Easy | 5 |
| Arithmetic Operators |
|
Easy | 10 |
| Python: Division |
|
Easy | 10 |
| Write a function |
|
Medium | 10 |
| Python If-Else |
|
Easy | 10 |
| Loops |
|
Easy | 10 |
| Print Function |
|
Easy | 20 |
Basic Data Types
| Title | Solution | Difficulty | Points |
|---|---|---|---|
| List Comprehensions |
|
Easy | 10 |
| Find the Runner-Up Score! |
|
Easy | 10 |