Skip to content

Geeky Codes

Programming, AI, Machine Learning & Software Development Tutorials

  • Home
  • Python
  • Machine Learning
  • Data Science
  • Interview Questions
  • Data Structures and Algorithms
  • Interview
  • Machine Learning From Scratch

Category: Hacker Rank Solutions

Find solutions to HackerRank problems in various domains and languages. Browse through the top interview questions, code compiler, and view the solutions online or download them.

Data Structures and AlgorithmsHacker Rank SolutionsPython

Beautiful Days at the Movies | Hackerrank Solutions

July 2, 2025July 2, 2025

Lily likes to play games with integers. She has created a new game where she determines the difference between a…

Save the Prisoner Program in Python | Hacker Rank Solution
C++Hacker Rank SolutionsJAVAPython

Save the Prisoner Program in Python | Hacker Rank Solution

Geeky CodesMarch 17, 2024July 2, 2025

A jail has a number of prisoners and a number of treats to pass out to them. Their jailer decides…

Hacker Rank SolutionsInterviewInterview QuestionsJAVA

Charlie has a Magic Mirror Program in Java

February 24, 2024July 1, 2025

Charlie possesses an extraordinary tool in his possession: a magic mirror capable of displaying right-rotated versions of any given word.…

Hacker Rank SolutionsPython

Angry Professor | Hackerrank Solution

February 24, 2024July 1, 2025

A Discrete Mathematics professor has a class of students. Frustrated with their lack of discipline, the professor decides to cancel…

Data Structures and AlgorithmsHacker Rank SolutionsPython

Utopian Tree | Hackerrank Solution

Geeky CodesFebruary 22, 2024July 1, 2025

The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter. A…

AlgorithmsData Structures and AlgorithmsHacker Rank SolutionsPython

Designer PDF Viewer | Hackerrank

February 21, 2024July 1, 2025

When a contiguous block of text is selected in a PDF viewer, the selection is highlighted with a blue rectangle.…

Hacker Rank Solutions

The Hurdle Race | Hackerrank

February 19, 2024July 1, 2025

A video player plays a game in which the character competes in a hurdle race. Hurdles are of varying heights,…

Hackerrank | Longest Subarray with Absolute Difference Constraint
AlgorithmsData Structures and AlgorithmsHacker Rank SolutionsPython

Hackerrank | Longest Subarray with Absolute Difference Constraint

January 18, 2024July 1, 2025

Problem Overview Given an array of integers, our task is to find the longest subarray such that the absolute difference…

Hackerrank | Magic Square
CData Structures and AlgorithmsHacker Rank SolutionsPython

Hackerrank | Magic Square

January 16, 2024April 25, 2025

We define a magic square to be an n*n matrix of distinct positive integers from 1 to n^2 where the sum of any row, column, or diagonal of…

Hackerrank | Cats and a Mouse
CData Structures and AlgorithmsHacker Rank SolutionsPython

Hackerrank | Cats and a Mouse

January 15, 2024April 25, 2025

Two cats and a mouse are at various positions on a line. You will be given their starting positions. Your…

Hackerrank | Birthday Candles Problem
AlgorithmsData Structures and AlgorithmsHacker Rank SolutionsInterviewInterview QuestionsPython

Hackerrank | Birthday Candles Problem

Geeky CodesDecember 30, 2023April 25, 2025

You are in charge of the cake for a child’s birthday. You have decided the cake will have one candle…

Hackerrank | Min Max Sum of N-1 Elements
Data Structures and AlgorithmsHacker Rank SolutionsInterviewInterview QuestionsPython

Hackerrank | Min Max Sum of N-1 Elements

Geeky CodesDecember 29, 2023April 23, 2025

Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the…

Hackerrank Problems | Diagonal Difference
Data Structures and AlgorithmsHacker Rank SolutionsInterview Questions

Hackerrank Problems | Diagonal Difference

Geeky CodesDecember 27, 2023April 25, 2025

Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix  is shown…

Hackerrank Problems | Compare the triplets
Data Structures and AlgorithmsHacker Rank SolutionsPython

Hackerrank Problems | Compare the triplets

Geeky CodesDecember 27, 2023April 25, 2025

Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale…

C Program to get Two Sum and Three Sum
CC++Data Structures and AlgorithmsHacker Rank Solutions

C Program to get Two Sum and Three Sum

December 21, 2023April 25, 2025

When working with arrays, solving problems like finding two elements that sum up to a target or three elements with…

Total Visitors

  • 49,553 hits
  • Longest Consecutive Sequence in Python: O(n) Hash Set Solution Explained
  • PyTorch CNN Shape Mismatch Error: Fixing “mat1 and mat2 shapes cannot be multiplied
  • Counting Common Members Across Months in SQL
  • How to Join a Parameterized View in SAP HANA (And Fix the “Parameterized View with Unused Parameter” Error)
  • Inverting a Character Frequency Map in Python

Top Posts & Pages

  • What is Artificial Neural Network (ANN)?
  • Charlie has a Magic Mirror Program in Java
  • Regression and Classification Multi Layer Perceptrons
Read more: C Program to get Two Sum and Three Sum

| Extensive News by Ascendoor | Powered by

Loading Comments...