Sudhir sharma has Published 1206 Articles

Find the first repeated word in a string in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 10:50:35

1K+ Views

In this problem, we are a string str consisting of comma separated words. Our task is to find the first repeated word in a string.We need to find the first word 'string between two spaces' which gets repeated in the string.Let's take an example to understand the problem, Input : ... Read More

Find the first maximum length even word from a string in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 10:43:34

749 Views

In this problem, we are a string str consisting of comma separated words. Our task is to find the first maximum length, even word, from a string.We need to find the largest word 'string between two spaces' whose length is maximum and even.Let's take an example to understand the problem, ... Read More

Find the dimensions of Right angled triangle in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 10:37:20

484 Views

In this problem, we are given two values H and A, denoting the hypotenuse and area of a right angled triangle. Our task is to find the dimensions of the Right angled triangle.Right Angled Triangle is a special type of triangle in which two sides intersect at right angles.Fig : ... Read More

Find the Deepest Node in a Binary Tree in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 09:15:56

558 Views

In this problem, we are given a binary tree. Our task is to find the Deepest Node in a Binary Tree.Binary Tree is a special data structure used for data storage purposes. A binary tree has a special condition that each node can have a maximum of two children.Deepest node ... Read More

Find the average of first N natural numbers in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 09:08:26

585 Views

In this problem, we are given a number n. Our task is to find the average of first N natural numbers.Average of numbers is defined as the sum of all numbers divided by the total number of numbers.Average of N natural numbers is defined as the sum of first N ... Read More

Find the arrangement of queue at given time in C++

sudhir sharma

sudhir sharma

Updated on 27-Jan-2022 09:02:17

154 Views

In this problem, we are given a string consisting of characters 'M' and 'F' only and a time t. Our task is to find the arrangement of the queue at a given time.The string defines people standing in a common queue to enter the bus. All males in the queue ... Read More

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

sudhir sharma

sudhir sharma

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

656 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

416 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

1K+ 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

96 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

Advertisements