Sudhir sharma has Published 1149 Articles

Find the area and perimeter of right triangle in PL/SQL

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:57:10

1K+ Views

In this problem, we are given three values: base, height and hypotenuse of a right triangle. Our task is to find the area and perimeter of the right triangle in PL/SQL.PL/SQL is a combination of SQL along with the procedural features of programming languagesLet's take an example to understand the ... Read More

Find sum of the series 1+22+333+4444+... upto n terms in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:49:02

577 Views

In this problem, we are given an integer value N. Our task is to find Sum of Series 1 + 22 + 333 + 4444 + 55555... upto n terms.Let's take an example to understand the problem, Input : N = 4 Output : 4800Explanation −1 + 22 + 333 ... Read More

Find sum of the series 1-2+3-4+5-6+7....in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:45:24

2K+ Views

In this problem, we are given an integer value N. Our task is to find Sum of Series 1 - 2 + 3 - 4 + 5 - 6 + 7 upto n terms.The series is 1 - 2 + 3 - 4 + 5 - 6 + 7 - ... Read More

Find sum of the series ?3 + ?12 +.... upto N terms in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:43:32

150 Views

In this problem, we are given an integer value N. Our task is to find Sum of Series ?3 + ?12 + ... upto n terms.The series is $\sqrt3 + \sqrt12 + \sqrt27 + \sqrt48 + ...$I.e. It is a series of square roots.Let's take an example to understand the ... Read More

Find sum of Series with n-th term as n^2 - (n-1)^2 in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:38:47

399 Views

In this problem, we are given an integer value N. Our task is to find Sum of Series n^2 - (n-1)^2 upto n terms.Let's take an example to understand the problem, Input : N = 3 Output : 6Explanation −[12 - (0)2] + [22 - (1)2] + [32 - (2)2] ... Read More

Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ... upto n terms in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:31:46

1K+ Views

In this problem, we are given an integer value N. Our task is to find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ... upto n terms.Let's take an example to understand the problem, Input : N = 3 Output : 6Explanation −12 - 22 + 32 = ... Read More

Find Sum of pair from two arrays with maximum sum in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:24:46

293 Views

In this problem, we are given two arrays, positive and distinct. Our task is to find the sum of pairs from two arrays with maximum sum.We will find the pair with the maximum sum with one element from each array.Let's take an example to understand the problem, Input : arr1[] ... Read More

Find sum of even and odd nodes in a linked list in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:18:57

853 Views

In this problem, we are given a linked list. Our task is to find the sum of even and odd nodes in a linked list.Let's take an example to understand the problem, Input : linked list : 3 -> 2 -> 5 -> 7 -> 1 -> 9 Output : ... Read More

Find sum of divisors of all the divisors of a natural number in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 08:11:18

1K+ Views

In this problem, we are given a natural number N. Our task is to find the sum of divisors of all the divisors of a natural number.Let's take an example to understand the problem, Input : N = 12 Output : 55Explanation −The divisors of 12 are 1, 2, 3, ... Read More

Find Sum of all unique subarray sum for a given array in C++

sudhir sharma

sudhir sharma

Updated on 25-Jan-2022 14:17:49

731 Views

In this problem, we are given an array arr[] consisting of n integer values. Our task is to find the sum of all unique subarray sum for a given array. Subarray sum is the sum of elements of the given subarray.Let's take an example to understand the problem, Input : ... Read More

Advertisements