Sudhir sharma has Published 1206 Articles

C++ program to find n-th term of series 3, 9, 21, 41, 71…

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:26:14

196 Views

In this problem, we are given an integer N. The task is to find the n-th term in series 3, 9, 21, 41, 71...Let’s take an example to understand the problem, InputN = 7Output169ExplanationThe series is 3, 9, 21, 41, 71, 169...Solution ApproachA simple solution to the problem is by ... Read More

C++ program to find n-th term of series 2, 10, 30, 68, 130 …

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:24:30

3K+ Views

In this problem, we are given an integer N. The task is to find the n-th term in series 2, 10, 30, 68, 130...Let’s take an example to understand the problem, InputN = 7Output350ExplanationThe series is 2, 10, 30, 68, 130, 222, 350...Solution ApproachA simple solution to the problem is ... Read More

C++ program to find n-th term of series 1, 3, 6, 10, 15, 21…

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:22:37

499 Views

In this problem, we are given an integer N. The task is to find the n-th term in series 1, 3, 6, 10, 15, 21, 28....Let’s take an example to understand the problem, InputN = 7Output28ExplanationThe series is 1, 3, 6, 10, 15, 21, 28...Solution ApproachA simple solution to the ... Read More

C++ program to find n-th term of series 1, 4, 27, 16, 125, 36, 343...

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:20:32

416 Views

In this problem, we are given an integer N. The task is to find the n-th term in series 1, 4, 27, 16, 125, 36, 343....Let’s take an example to understand the problem, InputN = 7Output343ExplanationThe series is 1, 4, 27, 16, 125, 36, 343…Solution ApproachA simple solution to the ... Read More

C++ program to find n-th term in the series 9, 33, 73,129 …

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:19:06

282 Views

In this problem, we are given an integer N. The task is to find n-th term in series 9, 33, 73, 129....Let’s take an example to understand the problem, InputN = 4Output129ExplanationThe series upto nth term is 9, 33, 73, 129...Solution ApproachThe solution to the problem lies in finding the ... Read More

C++ program to find n-th term in the series 7, 15, 32, …

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:17:07

130 Views

In this problem, we are given an integer N. The task is to find n-th term in series 7, 15, 32....Let’s take an example to understand the problem, InputN = 6Output281ExplanationThe series upto nth term is 7, 15, 32, 67, 138, 281Solution ApproachThe solution to the problem lies in decoding ... Read More

C++ Programe to find n-th term in series 1 2 2 3 3 3 4

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:14:13

275 Views

In this problem, we are given an integer N. The task is to find n-th term in series 1 2 2 3 3 3 4….Let’s take an example to understand the problem, InputN = 6Output3ExplanationThe series upto nth term is 1, 2, 2, 3, 3, 3, ...Solution ApproachA simple approach ... Read More

Find n-th node of inorder traversal in C++

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:12:17

269 Views

In this problem, we are given a binary tree and an integer N. The task is to find the n-th node in inorder traversal of a Binary Tree.A binary tree has a special condition that each node can have a maximum of two children.Traversal is a process to visit all ... Read More

Find n-th node in Preorder traversal of a Binary Tree in C++

sudhir sharma

sudhir sharma

Updated on 13-Mar-2021 12:08:15

192 Views

In this problem, we are given a binary tree and an integer N. The task is to find the n-th node in Preorder traversal of a Binary Tree.A binary tree has a special condition that each node can have a maximum of two children.Traversal is a process to visit all ... Read More

Find n-th node in Postorder traversal of a Binary Tree in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 08:33:38

93 Views

In this problem, we are given a binary tree and an integer N. The task is to find the n-th node in Postorder traversal of a Binary Tree.A binary tree has a special condition that each node can have a maximum of two children.Traversal is a process to visit all ... Read More

Advertisements