Home

Awesome

HackerRank Interview Preparation Kit

problems-solved java python cpp PRs Welcome cp cp

This repository contains solutions to the Interview Preparation Kit Tutorial on HackerRank. My HackerRank profile can be viewed here.

To Contribute have a look at CONTRIBUTING.md and happy coding 😀 🐱‍💻

Sub Domains & Problems (+Solutions) in the Interview Preparation Kit

Warm Up Challenges problems-solved

ProblemDifficultySolution Link
Sock MerchantEasyJava py
Counting ValleysEasyJava py
Jumping on the cloudsEasyJava py
Repeated StringEasyJava py

Arrays problems-solved

ProblemDifficultySolution Link
Arrays Left RotationEasyJava py
2D Array - DSEasyJava py
New Year ChaosEasyJava py
Minimum Swaps 2MediumJava py
Array ManipulationHardJava py

String Manipulation problems-solved

ProblemDifficultySolution Link
Strings: Making AnagramsEasyJava py
Alternating CharactersEasyJava py
Sherlock and The Valid StringMediumJava py
Special String AgainMediumJava py
Common ChildMediumJava py

Search problems-solved

ProblemDifficultySolution Link
Swap Nodes [Algo]MediumJava
PairsMediumJava
Triple SumMediumJava
Minimum Time RequiredMediumC++
Hash Tables: Ice Cream ParlourMediumJava
Maximum Subarray SumHardPython
Making CandiesHard

Dictionaries and Hashmaps problems-solved

ProblemDifficultySolution Link
Hash Tables: Ransom NoteEasyJava py
Two StringsEasyJava py
Sherlock and AnagramsMediumJava py
Count TripletsMediumJava py
Frequency QueriesMediumJava

Graphs problems-solved

ProblemDifficultySolution Link
Roads and LibrariesMediumJava
Find The Nearest CloneMediumJava Python
BFS: Shortest Reach in GraphHardJava
DFS Connected Cells In a GridHardJava
MatrixHardJava

Sorting problems-solved

ProblemDifficultySolution Link
Sorting: Bubble SortEasy
Mark and ToysEasy
Sorting: ComparatorMedium
Fraudulent Activity NotificationMedium
Merge Sort: Counting InversionsHard

Greedy Algorithms problems-solved

ProblemDifficultySolution Link
Minimum Absolute Difference in an ArrayEasy
Luck BalanceEasy
Greedy FloristMedium
Max MinMedium
Reverse Shuffle MergeAdvanced

Dynamic Programming problems-solved

ProblemDifficultySolution Link
Max Array SumMedium
AbbreviationMedium
CandiesMedium
Decibinary NumbersHard

Stacks and Queues problems-solved

ProblemDifficultySolution Link
Queues: A Tale of 2 StacksMedium
Balanced BracketsMedium
Largest RectangleMedium
Min Max RiddleMedium
Castle On The GridMedium
Poisonous PlantsHard

Trees problems-solved

ProblemDifficultySolution Link
Tree: Height of Binary TreeEasy
Binary Search Tree: Lowest Common AncestorEasy
Tree: Huffman DecodingMedium
Trees: Is This Binary Search Tree?Medium
Balanced ForestHard

Linked Lists problems-solved

ProblemDifficultySolution Link
Linked Lists: Detect a CycleEasy
Insert A Node at Specific Position In a Linked ListEasy
Inserting a Node into a Sorted Doubly Linked ListEasy
Reverse A Doubly Linked ListEasy
Find Merge Points of Two ListsEasy

Recursion and Backtracking problems-solved

ProblemDifficultySolution Link
Recursion: Fibonacci NumbersEasy
Recursion: Davis' StaircaseMedium
Crossword PuzzleMedium
Recursive Digit SumMedium

Miscellaneous problems-solved

ProblemDifficultySolution Link
Flipping BitsEasy
Time Complexity: PrimalityMedium
Friend Circle QueriesMedium
Maximum XORMedium