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: python

HackerRank Divisible Numbers Problem Solution

HackerRank Divisible Numbers Problem Solution

In this post, we will solve HackerRank Divisible Numbers Problem Solution. Given an integer, n. find the smallest integer m such that m is divisible by n (ie., n is a factor of m) and satisfies the following properties:m must not contain zeroes in its decimal representation. Sample Input 0 Sample Output 0 Explanation 0m…

Read More “HackerRank Divisible Numbers Problem Solution” »

c
HackerRank Best spot Problem Solution

HackerRank Best spot Problem Solution

In this post, we will solve HackerRank Best spot Problem Solution. In Chile, land are partitioned into a one large grid, where each element represents a land of size 1×1. Shaka is a newcomer in Chile and is trying to start his own business. He is planning to build a store. He has his own ideas…

Read More “HackerRank Best spot Problem Solution” »

c
HackerRank Vim War Problem Solution

HackerRank Vim War Problem Solution

In this post, we will solve HackerRank Vim War Problem Solution. A war has broken down between Vim and Emacs. Gedit, being Vim’s ally, is captured byEmacs as a prisoner of war and it is up to Vim to rescue him by defeating Emacs.For this task, Vim has to assemble an army of appropriate skills….

Read More “HackerRank Vim War Problem Solution” »

c
HackerRank Count Scorecards Problem Solution

HackerRank Count Scorecards Problem Solution

In this post, we will solve HackerRank Count Scorecards Problem Solution. In a tournament. n players play against each other exactly once. Each game results in exactly one player winning. There are no ties. You have been given a scorecard containing the scores of each player at the end of the tournament. The score of…

Read More “HackerRank Count Scorecards Problem Solution” »

c
HackerRank Ones and Twos Problem Solution

HackerRank Ones and Twos Problem Solution

In this post, we will solve HackerRank Ones and Twos Problem Solution. You are using at most A number of 1s and at most B number of 2s. How many different evaluation results are possible when they are formed in an expression containing only addition + sign and multiplication * sign are allowed? Note that, multiplication takes precedence over addition. For example, if A=2 and B=2,…

Read More “HackerRank Ones and Twos Problem Solution” »

c
HackerRank Tree Pruning Problem Solution

HackerRank Tree Pruning Problem Solution

In this post, we will solve HackerRank Tree Pruning Problem Solution. A tree, t, has ʼn vertices numbered from 1 to n and is rooted at vertex 1. Each vertex i has an integer weight, w,, associated with it, and t’s total weight is the sum of the weights of its nodes. A single remove…

Read More “HackerRank Tree Pruning Problem Solution” »

c
HackerRank The Blacklist Problem Solution

HackerRank The Blacklist Problem Solution

In this post, we will solve HackerRank The Blacklist Problem Solution. A new gangster is trying to take control of the city. He makes a list of his N adversaries (e.g. gangster 1. gangster 2…. gangster N-1. gangster N) and plans to get rid of them.K mercenaries are willing to do the job. The gangster…

Read More “HackerRank The Blacklist Problem Solution” »

c
HackerRank Find the Seed Problem Solution

HackerRank Find the Seed Problem Solution

In this post, we will solve HackerRank Find the Seed Problem Solution. A company needs random numbers for its operation. N random numbers have been generated using N numbers as seeds and the following recurrence formula:F(K) (C(1) x F(K-1) + C(2) × F(K-2)+ $5 = C(N-1) F(K – N+1) + C(N) × F(K – N))…

Read More “HackerRank Find the Seed Problem Solution” »

c
HackerRank Oil Well Problem Solution

HackerRank Oil Well Problem Solution

In this post, we will solve HackerRank Oil Well Problem Solution. Mr. Road Runner bought a piece of land in the middle of a desert for a nominal amount. It turns out that the piece of land is now worth millions of dollars as it has an oil reserve under it. Mr. Road Runner contacts…

Read More “HackerRank Oil Well Problem Solution” »

c
HackerRank Unfair Game Problem Solution

HackerRank Unfair Game Problem Solution

In this post, we will solve HackerRank Unfair Game Problem Solution. You are playing a game of Nim with a friend. The rules are are follows: 1) Initially, there are N piles of stones. Two players play alternately. 2) In each turn, a player can choose one non empty pile and remove any number of…

Read More “HackerRank Unfair Game Problem Solution” »

c
HackerRank Lucky Numbers Problem Solution

HackerRank Lucky Numbers Problem Solution

In this post, we will solve HackerRank Lucky Numbers Problem Solution. A number is called lucky if the sum of its digits, as well as the sum of the squares of its digits is a prime number. How many numbers between a and b inclusive, are lucky? For example, a = 20 and b = 25. Each number is tested below: We see that…

Read More “HackerRank Lucky Numbers Problem Solution” »

c
HackerRank Robot Problem Solution

HackerRank Robot Problem Solution

In this post, we will solve HackerRank Robot Problem Solution. You have two arrays of integers, V = {V1, V2,…, VN) and P= {P1, P2,…, PN} where both have N number of elements. Consider the following function: What is the maximum possible value of score that we can get in the end, if we call…

Read More “HackerRank Robot Problem Solution” »

c

Posts navigation

1 2 … 28 Next

Copyright © 2023 TheCScience.

Powered by PressBook Grid Blogs theme