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…


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…


Two Strings

Hello World!

Let’s understand the Two Strings problem on HackerRank. You may click on the title to read 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…


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…