Skip to content
  • Home
  • Contact Us
  • About Us
  • Privacy Policy
  • DMCA
  • Linkedin
  • Pinterest
  • Facebook
thecscience

TheCScience

TheCScience is a blog that publishes daily tutorials and guides on engineering subjects and everything that related to computer science and technology

  • Home
  • Human values
  • Microprocessor
  • Digital communication
  • Linux
  • outsystems guide
  • Toggle search form

Tag: java

HackerRank Build a Palindrome Problem Solution

HackerRank Build a Palindrome Problem Solution

In this post, we will solve HackerRank Build a Palindrome Problem Solution. You have two strings, a and b. Find a string, s, such that: Output FormatFor each pair of strings (a and b), find some s; satisfying the conditions above and print iton a new line. If there is no such string, print -1…

Read More “HackerRank Build a Palindrome Problem Solution” »

c
HackerRank String Function Calculation Solution

HackerRank String Function Calculation Solution

In this post, we will solve HackerRank String Function Calculation Problem Solution. Jane loves strings more than anything. She has a string t with her, and value of strings over function f can be calculated as given below:f(s) = sx Number of times s occurs in tJane wants to know the maximum value of f(s)…

Read More “HackerRank String Function Calculation Solution” »

c
HackerRank Count Strings Problem Solution

HackerRank Count Strings Problem Solution

In this post, we will solve HackerRank Count Strings Problem Solution. A regular expression is used to describe a set of strings. For this problem the alphabet is limited to ‘a’ and ‘b’.We define R to be a valid regular expression if:1) R is “a” or “b”.2) R is of the form “(R1 R2)”, where…

Read More “HackerRank Count Strings Problem Solution” »

c
HackerRank Morgan and a String Problem Solution

HackerRank Morgan and a String Problem Solution

In this bpost, we will solve HackerRank Morgan and a String Problem Solution. Jack and Daniel are friends. Both of them like letters, especially uppercase ones. They are cutting uppercase letters from newspapers, and each one of them has his collection of letters stored in a stack.One beautiful day, Morgan visited Jack and Daniel. He…

Read More “HackerRank Morgan and a String Problem Solution” »

c
HackerRank Bear and Steady Gene Solution

HackerRank Bear and Steady Gene Solution

In this post, we will solve HackerRank Bear and Steady Gene Problem Solution. A gene is represented as a string of length n (where n is divisible by 4), composed of the letters A, C, T. and G. It is considered to be steady if each of the four letters occurs exactly times. For example,…

Read More “HackerRank Bear and Steady Gene Solution” »

c
HackerRank Common Child Problem Solution

HackerRank Common Child Problem Solution

In this post, we will solve HackerRank Common Child Problem Solution. A string is said to be a child of a another string if it can be formed by deleting 0 or more characters from the other string. Letters cannot be rearranged. Given two strings of equal length, what’s the longest string that can be…

Read More “HackerRank Common Child Problem Solution” »

c
HackerRank Sherlock and Anagrams Solution

HackerRank Sherlock and Anagrams Solution

In this post, we will solve HackerRank Sherlock and Anagrams Problem Solution. Two strings are anagrams of each other if the letters of one string can be rearranged to form the other string. Given a string, find the number of pairs of substrings of the string that are anagrams of each other.Examples = momThe list…

Read More “HackerRank Sherlock and Anagrams Solution” »

c
HackerRank Maximum Palindromes Solution

HackerRank Maximum Palindromes Solution

In this post, we will solve HackerRank Maximum Palindromes Problem Solution. Madam Hannah Otto, the CEO of Reviver Corp., is fond of palindromes, or words that read the same forwards or backwards. She thinks palindromic brand names are appealing to millennials.As part of the marketing campaign for the company’s new juicer called the Rotatorâ„¢, Hannah…

Read More “HackerRank Maximum Palindromes Solution” »

c
HackerRank Highest Value Palindrome Solution

HackerRank Highest Value Palindrome Solution

In this post, we will solve HackerRank Highest Value Palindrome Solution. Palindromes are strings that read the same from the left or right, for example madam or 0110.You will be given a string representation of a number and a maximum number of changes you can make. Alter the string, one digit at a time, to…

Read More “HackerRank Highest Value Palindrome Solution” »

c
HackerRank Sherlock and the Valid String Solution

HackerRank Sherlock and the Valid String Solution

In this post, we will solve HackerRank Sherlock and the Valid String Solution. Sherlock considers a string to be valid if all characters of the string appear the same number of times. It is also valid if he can remove just 1 character at 1 index in the string, and the remaining characters will occur…

Read More “HackerRank Sherlock and the Valid String Solution” »

c
HackerRank String Construction Problem Solution

HackerRank String Construction Problem Solution

In this post, we will solve HackerRank String Construction Problem Solution. Amanda has a string of lowercase letters that she wants to copy to a new string. She can perform the following operations with the given costs. She can perform them any number of times to construct a new string p: Function Description Complete the stringConstruction function…

Read More “HackerRank String Construction Problem Solution” »

c
HackerRank Two Strings Problem Solution

HackerRank Two Strings Problem Solution

In this post, we will solve HackerRank Two Strings Problem Solution. Given two strings, determine if they share a common substring. A substring may be as smallas one character.Examples1 = ‘and’s2 = ‘art’These share the common substring a.s1 = ‘be’s2 = ‘cat’These do not share a substring. Function Description Complete the function twoStrings in the editor below….

Read More “HackerRank Two Strings Problem Solution” »

c

Posts navigation

Previous 1 … 19 20 21 … 29 Next

Copyright © 2023 TheCScience.

Powered by PressBook Grid Blogs theme