Instruction stringlengths 261 35k | Response stringclasses 1
value |
|---|---|
For this Question: Abhijit has an Array <b>Arr</b> which may or may not be in strictly increasing order. He wants to make this array increasing but does not wish to change the position of any element so he came with an idea that he will replace an element with any of its divisors i.e <b> he changes an element X to M if... | Compilable |
For this Question: Abhijit has an Array <b>Arr</b> which may or may not be in strictly increasing order. He wants to make this array increasing but does not wish to change the position of any element so he came with an idea that he will replace an element with any of its divisors i.e <b> he changes an element X to M if... | Compilable |
For this Question: Abhijit has an Array <b>Arr</b> which may or may not be in strictly increasing order. He wants to make this array increasing but does not wish to change the position of any element so he came with an idea that he will replace an element with any of its divisors i.e <b> he changes an element X to M if... | Compilable |
For this Question: Given an array A of size N. You need to find the root mean square (RMS) of the array i. e you first need to square all values of array and take its mean. Then you need to return the square root of mean. Print the answer with precision upto 6 decimal places.The first line contains an integer N - the s... | Compilable |
For this Question: Given an array A of size N. You need to find the root mean square (RMS) of the array i. e you first need to square all values of array and take its mean. Then you need to return the square root of mean. Print the answer with precision upto 6 decimal places.The first line contains an integer N - the s... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.
Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N s... | Compilable |
For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.
Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N s... | Compilable |
For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.
Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N s... | Compilable |
For this Question: Sara has an MCQ exam containing 100 questions this sunday but she isn't prepared. She came to know that in her exam
- >P number of Questions will have A as the correct option
- >Q number of Questions will have B as the correct option
- >R number of Questions will have C as the correct option
- >S... | Compilable |
For this Question: Sara has an MCQ exam containing 100 questions this sunday but she isn't prepared. She came to know that in her exam
- >P number of Questions will have A as the correct option
- >Q number of Questions will have B as the correct option
- >R number of Questions will have C as the correct option
- >S... | Compilable |
For this Question: Sara has an MCQ exam containing 100 questions this sunday but she isn't prepared. She came to know that in her exam
- >P number of Questions will have A as the correct option
- >Q number of Questions will have B as the correct option
- >R number of Questions will have C as the correct option
- >S... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.
Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N s... | Compilable |
For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.
Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N s... | Compilable |
For this Question: Given an array Arr of N integers, your task is to print the sum of elements present at even places and print the product of elements present at the odd places.
Note:- Consider the first element to start from 1.The first line of input contains a single integer N, the next line of input contains N s... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Check if the given string is a palindrome or not?
Palindromes are a numbers, phrases or words that reads same both the ways, backward as well as forward. For example, 1331 is a palindrome because on reversing the digits the number remains the same. But 123 is not a palindrome, as on reversing the di... | Compilable |
For this Question: Given a number N, find the value of the below equation for the given number.
Equation: -
N
∑ {(X + 1)<sup>2</sup> - (3X + 1) + X}
X = 1<b>User task:</b>
Since this is a functional problem, you don’t have to worry about the input, you just have to complete the function <b>equationSum()</... | Compilable |
For this Question: Given a number N, find the value of the below equation for the given number.
Equation: -
N
∑ {(X + 1)<sup>2</sup> - (3X + 1) + X}
X = 1<b>User task:</b>
Since this is a functional problem, you don’t have to worry about the input, you just have to complete the function <b>equationSum()</... | Compilable |
For this Question: Given a number N, find the value of the below equation for the given number.
Equation: -
N
∑ {(X + 1)<sup>2</sup> - (3X + 1) + X}
X = 1<b>User task:</b>
Since this is a functional problem, you don’t have to worry about the input, you just have to complete the function <b>equationSum()</... | Compilable |
For this Question: Given a number N, find the value of the below equation for the given number.
Equation: -
N
∑ {(X + 1)<sup>2</sup> - (3X + 1) + X}
X = 1<b>User task:</b>
Since this is a functional problem, you don’t have to worry about the input, you just have to complete the function <b>equationSum()</... | Compilable |
For this Question: Alexa is a very kind girl. She has 'x' red gems and 'y' blue gems. She wants to distribute them among her two friends (Alice and Julia).
But she will only distribute them if she can give equal number of each colour of gems to Alice and Julia. Further, she must distribute all available gems in thi... | Compilable |
For this Question: Alexa is a very kind girl. She has 'x' red gems and 'y' blue gems. She wants to distribute them among her two friends (Alice and Julia).
But she will only distribute them if she can give equal number of each colour of gems to Alice and Julia. Further, she must distribute all available gems in thi... | Compilable |
For this Question: Alexa is a very kind girl. She has 'x' red gems and 'y' blue gems. She wants to distribute them among her two friends (Alice and Julia).
But she will only distribute them if she can give equal number of each colour of gems to Alice and Julia. Further, she must distribute all available gems in thi... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard. What is the average height of a tree in Terry's front yard?
Note:- Print your answer as floor value (average height)The first line contains N: numbers of t... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given a linked list consisting of N nodes and two integers M and K. Your task is to add element K at the Mth position from the start of the linked list<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>addElement()</b> t... | Compilable |
For this Question: Given an integer, your task is to check whether the given integer is even or odd.
If the integer is even print 0 else if it is odd print 1.The input contains a single integer N.
Constraint:
1 ≤ N ≤10000If the integer is even print 0 else if it is odd print 1.Sample Input:-
15
Sample Ou... | Compilable |
For this Question: Given an integer, your task is to check whether the given integer is even or odd.
If the integer is even print 0 else if it is odd print 1.The input contains a single integer N.
Constraint:
1 ≤ N ≤10000If the integer is even print 0 else if it is odd print 1.Sample Input:-
15
Sample Ou... | Compilable |
For this Question: Given an integer N, find the Nth number in the fibonacci series. Consider 0 and 1 to be the seed values.
In the fibonacci series, each number (Fibonacci number) is the sum of the two preceding numbers. The series with 0 and 1 as seed values will go like -
0, 1, 1, 2, 3, 5 and so on..<b>User Task:... | Compilable |
For this Question: Given an integer N, find the Nth number in the fibonacci series. Consider 0 and 1 to be the seed values.
In the fibonacci series, each number (Fibonacci number) is the sum of the two preceding numbers. The series with 0 and 1 as seed values will go like -
0, 1, 1, 2, 3, 5 and so on..<b>User Task:... | Compilable |
For this Question: Given an array A[] of size N, containing positive integers. You need to print the sum and mean (floor value) of given numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function:- <b>SumAndMean()</b> that takes the Array and... | Compilable |
For this Question: Given an array A[] of size N, containing positive integers. You need to print the sum and mean (floor value) of given numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function:- <b>SumAndMean()</b> that takes the Array and... | Compilable |
For this Question: Given an array A[] of size N, containing positive integers. You need to print the sum and mean (floor value) of given numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function:- <b>SumAndMean()</b> that takes the Array and... | Compilable |
For this Question: Given a number N, add 8 to it and then divide it by 3, take the modulus of the resulting value with 5 and then finally multiply it by 5. Display the final value of NYou don't have to worry about the input, you just have to complete the function <b>stepsExecute</b>
<b>Constraints</b>
1000 <= numbe... | Compilable |
For this Question: Given a number N, add 8 to it and then divide it by 3, take the modulus of the resulting value with 5 and then finally multiply it by 5. Display the final value of NYou don't have to worry about the input, you just have to complete the function <b>stepsExecute</b>
<b>Constraints</b>
1000 <= numbe... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Given the radius of the circle, your task is to calculate its area.
<b>Note:- </b>
(i) take π as 3.14.
(ii) Print the area up to 2 decimal places.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Area()</b> that tak... | Compilable |
For this Question: Alexa is a very kind girl. She has 'x' red gems and 'y' blue gems. She wants to distribute them among her two friends (Alice and Julia).
But she will only distribute them if she can give equal number of each colour of gems to Alice and Julia. Further, she must distribute all available gems in thi... | Compilable |
For this Question: Alexa is a very kind girl. She has 'x' red gems and 'y' blue gems. She wants to distribute them among her two friends (Alice and Julia).
But she will only distribute them if she can give equal number of each colour of gems to Alice and Julia. Further, she must distribute all available gems in thi... | Compilable |
For this Question: Alexa is a very kind girl. She has 'x' red gems and 'y' blue gems. She wants to distribute them among her two friends (Alice and Julia).
But she will only distribute them if she can give equal number of each colour of gems to Alice and Julia. Further, she must distribute all available gems in thi... | Compilable |
For this Question: Little Harry has the mighty Sorcerer's Stone in his possession. Professor Quirrell, Harry's teacher, is trying to get hold of the stone. So, he tries to attack him. Both Harry and the Professor attack each other turn by turn.
You are given an N integers D<sub>1</sub>, D<sub>2</sub>, D<sub>3</sub>,.... | Compilable |
For this Question: Little Harry has the mighty Sorcerer's Stone in his possession. Professor Quirrell, Harry's teacher, is trying to get hold of the stone. So, he tries to attack him. Both Harry and the Professor attack each other turn by turn.
You are given an N integers D<sub>1</sub>, D<sub>2</sub>, D<sub>3</sub>,.... | Compilable |
For this Question: Little Harry has the mighty Sorcerer's Stone in his possession. Professor Quirrell, Harry's teacher, is trying to get hold of the stone. So, he tries to attack him. Both Harry and the Professor attack each other turn by turn.
You are given an N integers D<sub>1</sub>, D<sub>2</sub>, D<sub>3</sub>,.... | Compilable |
For this Question: You are given a positive integer N. Print "Yes" if N is a multiple of 3, otherwise, print "No".The input consists of a single integer N.
<b> Constraints: </b>
1 ≤ N ≤ 1000If N is a multiple of 3, print "Yes". Otherwise, print "No" (without the quotation marks). Note that the <b>output is ca... | Compilable |
For this Question: Given an array A of positive integers. Your task is to sort them in such a way that the first part of the array contains odd numbers sorted in descending order, rest portion contains even numbers sorted in ascending order.First line of each test case contains an integer N denoting the size of the arr... | Compilable |
For this Question: Given an array A of positive integers. Your task is to sort them in such a way that the first part of the array contains odd numbers sorted in descending order, rest portion contains even numbers sorted in ascending order.First line of each test case contains an integer N denoting the size of the arr... | Compilable |
For this Question: Given an array A of positive integers. Your task is to sort them in such a way that the first part of the array contains odd numbers sorted in descending order, rest portion contains even numbers sorted in ascending order.First line of each test case contains an integer N denoting the size of the arr... | Compilable |
For this Question: Given an array A of positive integers. Your task is to sort them in such a way that the first part of the array contains odd numbers sorted in descending order, rest portion contains even numbers sorted in ascending order.First line of each test case contains an integer N denoting the size of the arr... | Compilable |
For this Question: Given an array A[] of size N, containing positive integers. You need to print the sum and mean (floor value) of given numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function:- <b>SumAndMean()</b> that takes the Array and... | Compilable |
For this Question: Given an array A[] of size N, containing positive integers. You need to print the sum and mean (floor value) of given numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function:- <b>SumAndMean()</b> that takes the Array and... | Compilable |
For this Question: Given an array A[] of size N, containing positive integers. You need to print the sum and mean (floor value) of given numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function:- <b>SumAndMean()</b> that takes the Array and... | Compilable |
For this Question: Given an integer, your task is to check whether the given integer is even or odd.
If the integer is even print 0 else if it is odd print 1.The input contains a single integer N.
Constraint:
1 ≤ N ≤10000If the integer is even print 0 else if it is odd print 1.Sample Input:-
15
Sample Ou... | Compilable |
For this Question: Given an integer, your task is to check whether the given integer is even or odd.
If the integer is even print 0 else if it is odd print 1.The input contains a single integer N.
Constraint:
1 ≤ N ≤10000If the integer is even print 0 else if it is odd print 1.Sample Input:-
15
Sample Ou... | Compilable |
For this Question: Tom loves Chess boards. He admires its symmetry and how the black and white colors are placed adjacently along both axis.
More formally, a chessboard-like coloring implies that no two adjacent cells have the same color and all the cells are painted either white or black.
On his birthday, Tom has be... | Compilable |
For this Question: Tom loves Chess boards. He admires its symmetry and how the black and white colors are placed adjacently along both axis.
More formally, a chessboard-like coloring implies that no two adjacent cells have the same color and all the cells are painted either white or black.
On his birthday, Tom has be... | Compilable |
For this Question: Tom loves Chess boards. He admires its symmetry and how the black and white colors are placed adjacently along both axis.
More formally, a chessboard-like coloring implies that no two adjacent cells have the same color and all the cells are painted either white or black.
On his birthday, Tom has be... | Compilable |
For this Question: Hawkeye has been assigned to eliminate n monsters, the i<sup>th</sup> of which is of type a<sub>i</sub>. In one move, he can do either of the following:
i. Shoot down atmost any k monsters. In other words, he can shoot down any set of monsters such that the size of that set is smaller than or equa... | Compilable |
For this Question: Hawkeye has been assigned to eliminate n monsters, the i<sup>th</sup> of which is of type a<sub>i</sub>. In one move, he can do either of the following:
i. Shoot down atmost any k monsters. In other words, he can shoot down any set of monsters such that the size of that set is smaller than or equa... | Compilable |
For this Question: Hawkeye has been assigned to eliminate n monsters, the i<sup>th</sup> of which is of type a<sub>i</sub>. In one move, he can do either of the following:
i. Shoot down atmost any k monsters. In other words, he can shoot down any set of monsters such that the size of that set is smaller than or equa... | Compilable |
For this Question: Hawkeye has been assigned to eliminate n monsters, the i<sup>th</sup> of which is of type a<sub>i</sub>. In one move, he can do either of the following:
i. Shoot down atmost any k monsters. In other words, he can shoot down any set of monsters such that the size of that set is smaller than or equa... | Compilable |
For this Question: A magic number is a natural number that contains both the digits 7 and 9 in it. For eg:- 79, 879, 53729 etc.
Given a number N, your task is to find the closest Magic number from the given number N.
Note:- If more than one answer exists return the minimum one<b>User Task:</b>
Since this will be ... | Compilable |
For this Question: A magic number is a natural number that contains both the digits 7 and 9 in it. For eg:- 79, 879, 53729 etc.
Given a number N, your task is to find the closest Magic number from the given number N.
Note:- If more than one answer exists return the minimum one<b>User Task:</b>
Since this will be ... | Compilable |
For this Question: A magic number is a natural number that contains both the digits 7 and 9 in it. For eg:- 79, 879, 53729 etc.
Given a number N, your task is to find the closest Magic number from the given number N.
Note:- If more than one answer exists return the minimum one<b>User Task:</b>
Since this will be ... | Compilable |
For this Question: A magic number is a natural number that contains both the digits 7 and 9 in it. For eg:- 79, 879, 53729 etc.
Given a number N, your task is to find the closest Magic number from the given number N.
Note:- If more than one answer exists return the minimum one<b>User Task:</b>
Since this will be ... | Compilable |
For this Question: Little Harry has the mighty Sorcerer's Stone in his possession. Professor Quirrell, Harry's teacher, is trying to get hold of the stone. So, he tries to attack him. Both Harry and the Professor attack each other turn by turn.
You are given an N integers D<sub>1</sub>, D<sub>2</sub>, D<sub>3</sub>,.... | Compilable |
For this Question: Little Harry has the mighty Sorcerer's Stone in his possession. Professor Quirrell, Harry's teacher, is trying to get hold of the stone. So, he tries to attack him. Both Harry and the Professor attack each other turn by turn.
You are given an N integers D<sub>1</sub>, D<sub>2</sub>, D<sub>3</sub>,.... | Compilable |
For this Question: Little Harry has the mighty Sorcerer's Stone in his possession. Professor Quirrell, Harry's teacher, is trying to get hold of the stone. So, he tries to attack him. Both Harry and the Professor attack each other turn by turn.
You are given an N integers D<sub>1</sub>, D<sub>2</sub>, D<sub>3</sub>,.... | Compilable |
For this Question: You are given a positive integer N. Print "Yes" if N is a multiple of 3, otherwise, print "No".The input consists of a single integer N.
<b> Constraints: </b>
1 ≤ N ≤ 1000If N is a multiple of 3, print "Yes". Otherwise, print "No" (without the quotation marks). Note that the <b>output is ca... | Compilable |
For this Question: Given an array A of size N. You need to find the root mean square (RMS) of the array i. e you first need to square all values of array and take its mean. Then you need to return the square root of mean. Print the answer with precision upto 6 decimal places.The first line contains an integer N - the s... | Compilable |
For this Question: Given an array A of size N. You need to find the root mean square (RMS) of the array i. e you first need to square all values of array and take its mean. Then you need to return the square root of mean. Print the answer with precision upto 6 decimal places.The first line contains an integer N - the s... | Compilable |
For this Question: Given a number N, add 8 to it and then divide it by 3, take the modulus of the resulting value with 5 and then finally multiply it by 5. Display the final value of NYou don't have to worry about the input, you just have to complete the function <b>stepsExecute</b>
<b>Constraints</b>
1000 <= numbe... | Compilable |
For this Question: Given a number N, add 8 to it and then divide it by 3, take the modulus of the resulting value with 5 and then finally multiply it by 5. Display the final value of NYou don't have to worry about the input, you just have to complete the function <b>stepsExecute</b>
<b>Constraints</b>
1000 <= numbe... | Compilable |
For this Question: Tom loves Chess boards. He admires its symmetry and how the black and white colors are placed adjacently along both axis.
More formally, a chessboard-like coloring implies that no two adjacent cells have the same color and all the cells are painted either white or black.
On his birthday, Tom has be... | Compilable |
For this Question: Tom loves Chess boards. He admires its symmetry and how the black and white colors are placed adjacently along both axis.
More formally, a chessboard-like coloring implies that no two adjacent cells have the same color and all the cells are painted either white or black.
On his birthday, Tom has be... | Compilable |
For this Question: Tom loves Chess boards. He admires its symmetry and how the black and white colors are placed adjacently along both axis.
More formally, a chessboard-like coloring implies that no two adjacent cells have the same color and all the cells are painted either white or black.
On his birthday, Tom has be... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
For this Question: Given an integer N, find all possible pairs of A, and B such that A + B = N and A and B both are natural numbers.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Allpair()</b> that takes integer N as a parameter.
Co... | Compilable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.