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 Max Min Problem Solution

HackerRank Max Min Problem Solution

In this post, we will solve HackerRank Max Min Problem Solution. You will be given a list of integers, arr, and a single integer k. You must create an array of length & from elements of arr such that its unfairness is minimized. Call that array arr. Unfairness of an array is calculated asmax(arr) –…

Read More “HackerRank Max Min Problem Solution” »

c
HackerRank Greedy Florist Problem Solution

HackerRank Greedy Florist Problem Solution

A group of friends want to buy a bouquet of flowers. The florist wants to maximize his number of new customers and the money he makes. To do this, he decides he’ll multiply the price of each flower by the number of that customer’s previously purchased flowers plus 1. The first flower will be original…

Read More “HackerRank Greedy Florist Problem Solution” »

c
HackerRank Mark and Toys Problem Solution

HackerRank Mark and Toys Problem Solution

In this post, we will solve HackerRank Mark and Toys Problem Solution. Mark and Jane are very happy after having their first child. Their son loves toys, so Mark wants to buy some. There are a number of different toys lying in front of him, tagged with their prices. Mark has only a certain amount…

Read More “HackerRank Mark and Toys Problem Solution” »

c
HackerRank Largest Permutation Problem Solution

HackerRank Largest Permutation Problem Solution

In this post, we will solve HackerRank Largest Permutation Problem Solution. You are given an unordered array of unique integers incrementing from 1. You can swap any two elements a limited number of times. Determine the largest lexicographical value array that can be created by executing no more than the limited number of swaps.Examplearr =…

Read More “HackerRank Largest Permutation Problem Solution” »

c
HackerRank Priyanka and Toys Problem Solution

HackerRank Priyanka and Toys Problem Solution

In this post, we will solve HackerRank Priyanka and Toys Problem Solution. Priyanka works for an international toy company that ships by container. Her task is to the determine the lowest cost way to combine her orders for shipping. She has a list of item weights. The shipping company has a requirement that all items…

Read More “HackerRank Priyanka and Toys Problem Solution” »

c
HackerRank Sherlock and The Beast Solution

HackerRank Sherlock and The Beast Solution

In this pot, we will solve HackerRank Sherlock and The Beast Problem Solution. Sherlock Holmes suspects his archenemy Professor Moriarty is once again plotting something diabolical. Sherlock’s companion, Dr. Watson, suggests Moriarty may be responsible for MI6’s recent issues with their supercomputer. The Beast.Shortly after resolving to investigate, Sherlock receives a note from Moriarty boasting…

Read More “HackerRank Sherlock and The Beast Solution” »

c
HackerRank Candies Problem Solution

HackerRank Candies Problem Solution

In this post, we will solve HackerRank Candies Problem Solution. Alice is a kindergarten teacher. She wants to give some candies to the children in her class.  All the children sit in a line and each of them has a rating score according to his or her performance in the class.  Alice wants to give at least…

Read More “HackerRank Candies Problem Solution” »

c
HackerRank Beautiful Pairs Problem Solution

HackerRank Beautiful Pairs Problem Solution

In this post, we will solve HackerRank Beautiful Pairs Problem Solution. You are given two arrays. A and B, both containing N integers.A pair of indices (i, j) is beautiful if the ith element of array A is equal to the jth element of array B. In other words, pair (i, j) is beautiful if…

Read More “HackerRank Beautiful Pairs Problem Solution” »

c
HackerRank Maximum Perimeter Triangle  Solution

HackerRank Maximum Perimeter Triangle Solution

In this post, we will solve HackerRank Maximum Perimeter Triangle Problem Solution. Given an array of stick lengths, use 3 of them to construct a non-degenerate triangle with the maximum possible perimeter. Return an array of the lengths of its sides as 3 integers in non-decreasing order.If there are several valid triangles having the maximum…

Read More “HackerRank Maximum Perimeter Triangle Solution” »

c
HackerRank Luck Balance Problem Solution

HackerRank Luck Balance Problem Solution

In this post, we will solve HackerRank Luck Balance Problem Solution. Lena is preparing for an important coding competition that is preceded by a number of sequential preliminary contests. Initially, her luck balance is 0. She believes in “saving luck”. and wants to check her theory. Each contest is described by two integers, L[i] and…

Read More “HackerRank Luck Balance Problem Solution” »

c
HackerRank Grid Challenge Problem Solution

HackerRank Grid Challenge Problem Solution

In this post, we will solve HackerRank Grid Challenge Problem Solution. Given a square grid of characters in the range ascii[a-z], rearrange elements of each row alphabetically, ascending. Determine if the columns are also in ascending alphabetical order, top to bottom. Return YES if they are or NO if they are not. Example grid = [abc, ade, efg] The…

Read More “HackerRank Grid Challenge Problem Solution” »

c
HackerRank Marc’s Cakewalk Problem Solution

HackerRank Marc’s Cakewalk Problem Solution

In this post, we will solve HackerRank Marc’s Cakewalk Problem Solution. Marc loves cupcakes, but he also likes to stay fit. Each cupcake has a calorie count, and Marc can walk a distance to expend those calories. If Marc has eaten j cupcakes so far. after eating a cupcake with e calories he must walk…

Read More “HackerRank Marc’s Cakewalk Problem Solution” »

c

Posts navigation

1 2 … 20 Next

Copyright © 2023 TheCScience.

Powered by PressBook Grid Blogs theme