Beautiful Binary String

Hello World!

Let’s understand the Beautiful Binary String problem on HackerRank. You may click on the title to read the problem statement. So let’s start.

Here, we have to eliminate all the ‘010’ sub strings from the given string. You…


Angry Professor

Hello World!

Let’s get going with the problem Angry Professor on HackerRank. You may click on the title to read the problem statement. So let’s start…

We have been given a list of N integers, i.e. their arrival times. We also have a threshold K…


Hello World!

Hello world, this is Pratik Somwanshi and I’m going to explain how I solve problems on HackerRank.

I am eager to start my own blog and I find no topic better than this. I will discuss the approach and also the code for the solution. I will mostly use python but you are free to…


Permuting Two Arrays

Hello World!

Let’s get going with the problem Permuting Two Arrays on HackerRank. You may click on the title to read the problem statement. So let’s start…

We have been given two arrays A and B of equal length. We are asked to find if we can…


Pairs

Hello World!

Let’s get going with the problem Pairs on HackerRank. You may click on the title to read the problem statement. So let’s start…

We have been given N distinct numbers in the input. We need to find number of pairs that have difference K between them. The…


Sherlock and Array

Hello World!

Let’s get going with the problem Sherlock and Array on HackerRank. You may click on the title to read the problem statement. So let’s start…

The problem states that we have been given a list A of length n, and we need to find an…


Sum vs XOR

Hello World!

Let’s understand the Sum vs XOR problem on HackerRank. You may click on the title to read the problem statement. So let’s start.

Here, you may use brute force to iterate over x, 0 ≤ x ≤ n and if sum of x and n is equal to XOR or x and n, then…

Hackerrank Algorithms
Hackerrank Algorithms
Solution with explanation to different problems in algorithms domain mostly in python programming language.
More information
Followers
182
Elsewhere