Skip to content

ExploringBits

  • HackerRank
  • Online Tools
    • Text to Speech
    • AI
  • Discord
  • Technology
  • Contact Us
  • About Us

HackerRank Solutions

Beatiful Binary Strings Hackerrank Solution

Beautiful Binary String HackerRank Solution in C, C++, Java, Python

Alice has a binary string. She thinks a binary string is beautiful if and only if it doesn’t contain the substring “010”. In one step, Alice can change a 0 …

Read more

The Full Counting Sort Hackerrank Solution

The Full Counting Sort HackerRank Solution in C, C++, Java, Python

Use the counting sort to order a list of strings associated with integers. If two strings are associated with the same integer, they must be printed in their original order, …

Read more

Separate the Numbers Hackerrank solution

Separate the Numbers HackerRank Solution in C, C++, Java, Python

A numeric string,s , is beautiful if it can be split into a sequence of two or more positive integers,a[1],a[2],…,a[n], , satisfying the following conditions: a[i]-a[i-1]=1 for any 1<i<=n (i.e., …

Read more

Alternating Characters Hackerrank solution

Alternating Characters HackerRank Solution in C, C++, Java, Python

You are given a string containing characters A and B only. Your task is to change it into a string such that there are no matching adjacent characters. To do …

Read more

Gemstones Hackerrank solution

Gemstones HackerRank Solution in C, C++, Java, Python

There is a collection of rocks where each rock has various minerals embeded in it. Each type of mineral is designated by a lowercase letter in the range ascii[a-z]. There …

Read more

Counting Sort 1 Hackerrank solution

Counting Sort 2 HackerRank Solution in C, C++, Java, Python

Comparison Sorting Quicksort usually has a running time of n*log(n), but is there an algorithm that can sort even faster? In general, this is not possible. Most sorting algorithms are …

Read more

Funny String Hackerrank solution

Funny String HackerRank Solution in C, C++, Java, Python

In this challenge, you will determine whether a string is funny or not. To determine whether a string is funny, create a copy of the string in reverse e.g.abc->cba . …

Read more

Weighted Uniform Strings Hackerrank solution

Weighted Uniform Strings HackerRank Solution in C, C++, Java, Python

A weighted string is a string of lowercase English letters where each letter has a weight. Character weights are 1 to 26 from a to z as shown below: The …

Read more

Pangrams Hackerrank solution

Pangrams HackerRank Solution in C, C++, Java, Python

A pangram is a string that contains every letter of the alphabet. Given a sentence determine whether it is a pangram in the English alphabet. Ignore case. Return either pangram …

Read more

Quicksort1-Partition Hackerrank solution

Quicksort 1 – Partition HackerRank Solution in C, C++, Java, Python

The previous challenges covered Insertion Sort, which is a simple and intuitive sorting algorithm with a running time of O(n^2). In these next few challenges, we’re covering a divide-and-conquer algorithm …

Read more

Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page13 Next →
© 2025 ExploringBits.com. All Rights Reserved.