Problem Solving topic on HackerRank
Solutions to theThis repository contains my solutions for the HackerRank Problem Solving
course. The topic is split into two domains, algorithms and data structures.
Algorithms
Warmup
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Solve Me First | solve_me_first.py | 1 | 1 |
Easy | Simple Array Sum | simple_array_sum.py | 10 | 10 |
Easy | Compare the Triplets | compare_the_triplets.py | 10 | 10 |
Easy | A Very Big Sum | a_very_big_sum.py | 10 | 10 |
Easy | Diagonal Difference | diagonal_difference.py | 10 | 10 |
Easy | Plus Minus | plus_minus.py | 10 | 10 |
Easy | Staircase | staircase.py | 10 | 10 |
Easy | Mini Max Sum | mini_max_sum.py | 10 | 10 |
Easy | Birthday Cake Candles | birthday_cake_candles.py | 10 | 10 |
Easy | Time Conversion | time_conversion.py | 15 | 15 |
Implementation
Strings
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Camelcase | camelcase.py | 15 | 15 |
Easy | Strong Password | strong_password.py | 15 | 15 |
Easy | Alternating Characters | alternating_characters.py | 20 | 20 |
Easy | Pangrams | pangrams.py | 20 | 20 |
Easy | Super Reduced String | super_reduced_string.py | 10 | 10 |
Easy | Mars Exploration | mars_exploration.py | 15 | 15 |
Easy | Funny String | funny_string.py | 25 | 25 |
Easy | Gemstones | gemstones.py | 20 | 20 |
Easy | Game-of-thrones | game-of-thrones.py | 30 | 30 |
Easy | String Construction | string_construction.py | 25 | 25 |
Easy | Two Strings | two_strings.py | 25 | 25 |
Sorting
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Tutorial-intro | tutorial-intro.py | 30 | 30 |
Easy | Find the Median | find_the_median.py | 35 | 35 |
Easy | Closest Numbers | closest_numbers.py | 35 | 35 |
Easy | Insertionsort1 | insertionsort1.py | 30 | 30 |
Search
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Ice Cream Parlor | ice_cream_parlor.py | 30 | 30 |
Easy | Missing Numbers | missing_numbers.py | 45 | 45 |
Graph Theory
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Greedy
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Marcs Cakewalk | marcs_cakewalk.py | 15 | 15 |
Dynamic Programming
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Constructive Algorithms
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Bit Manipulation
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Recursion
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Medium | Recursive Digit Sum | recursive_digit_sum.py | 30 | 30 |
Game Theory
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Np Complete
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Debugging
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Strings Xor | strings_xor.py | 25 | 25 |
Data Structures
Arrays
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Array Ds | array_ds.py | 10 | 10 |
Easy | Array Left Rotation | array_left_rotation.py | 20 | 20 |
Easy | 2d Array | 2d_array.py | 15 | 15 |
Medium | Sparse-arrays | sparse-arrays.py | 25 | 25 |
Linked List
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|---|---|---|---|
Easy | Print the Elements Of A Linked List | print_the_elements_of_a_linked_list.py | 5 | 5 |
Easy | Compare Two Linked Lists | compare_two_linked_lists.py | 5 | 5 |
Trees
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Balanced Trees
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Stacks
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Queues
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Heap
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Disjoint Set
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Multiple Choice
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Trie
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|
Advanced
Difficulty | Problem | Solution | Score Obtained | Max Score |
---|