/hackerrank

Solutions for Hackerrank problems 💬

Primary LanguagePythonMIT LicenseMIT

Hackerrank Challenges

Solutions for Hackerrank challenges.

Algorithms   |    Python   |    Interview Preparation Kit

Algorithms

Subdomain Difficulty Challenge Solution
Warmup Easy Solve Me First solveMeFirst.py
Warmup Easy Simple Array Sum simpleArraySum.py
Warmup Easy Compare the Triplets compareTriplets.py
Warmup Easy A Very Big Sum aVeryBigSum.py
Warmup Easy Diagonal Difference diagonalDifference.py
Warmup Easy Plus Minus plusMinus.py
Warmup Easy Staircase staircase.py
Warmup Easy Mini-Max Sum miniMaxSum.py
Warmup Easy Birthday Cake Candles birthdayCakeCandles.py
Warmup Easy Time Conversion timeConversion.py
Implementation Easy Grading Students gradingStudents.py
Implementation Easy Apple and Orange countApplesAndOranges.py
Implementation Easy Kangaroo kangaroo.py
Implementation Easy Between Two Sets getTotalX.py
Implementation Easy Breaking the Records breakingRecords.py
Implementation Easy Birthday Chocolate birthday.py
Implementation Easy Divisible Sum Pairs divisibleSumPairs.py
Implementation Easy Migratory Birds migratoryBirds.py
Implementation Easy Bon Appétit bonAppetit.py
Implementation Easy Sock Merchant sockMerchant.py
Implementation Easy Drawing Book pageCount.py
Implementation Easy Counting Valleys countingValleys.py
Implementation Easy Electronics Shop getMoneySpent.py
Implementation Easy Cats and a Mouse catAndMouse.py
Implementation Easy Picking Numbers pickingNumbers.py
Implementation Easy The Hurdle Race hurdleRace.py
Implementation Easy Designer PDF Viewer designerPdfViewer.py
Implementation Easy Repeated String repeatedString.py
Implementation Easy Jumping on the Clouds jumpingOnClouds.py
Implementation Easy Equalize the Array equalizeArray.py
Implementation Medium Forming a Magic Square formingMagicSquare.py
Implementation Medium Climbing the Leaderboard climbingLeaderboard.py

Python

Subdomain Difficulty Challenge Solution
Introduction Easy Say "Hello, World!" With Python helloWorld.py
Introduction Easy Python If-Else ifElse.py
Introduction Easy Arithmetic Operators arithmeticOperators.py
Introduction Easy Python: Division division.py
Introduction Easy Loops loops.py
Introduction Easy Print Function print.py
Introduction Medium Write a function isLeap.py
Basic Data Types Easy List Comprehensions listComprehensions.py
Basic Data Types Easy Find the Runner-Up Score! runnerUp.py

Interview Preparation Kit

Subdomain Difficulty Challenge Solution
Warmup Easy Counting Valleys countingValleys.py
Warmup Easy Jumping on the Clouds jumpingOnClouds.py
Warmup Easy Repeated String repeatedString.py
Warmup Easy Sock Merchant sockMerchant.py
Arrays Easy 2D Array - DS hourglassSum.py
Arrays Easy Arrays: Left Rotation rotLeft.py
Arrays Medium Minimum Swaps 2 minimumSwaps.py
Arrays Medium New Year Chaos minimumBribes.py
Dictionaries and Hashmaps Easy Hash Tables: Ransom Note checkMagazine.py
Dictionaries and Hashmaps Easy Two Strings twoStrings.py
Dictionaries and Hashmaps Medium Sherlock and Anagrams sherlockAndAnagrams.py
Sorting Easy Mark and Toys maximumToys.py
Sorting Easy Sorting: Bubble Sort countSwaps.py
Sorting Medium Fraudulent Activity Notifications activityNotifications.py
Sorting Medium Sorting: Comparator playerComparator.py
Strings Easy Alternating Characters alternatingCharacteres.py
Strings Easy Strings: Making Anagrams makeAnagram.py