Sudhir sharma has Published 1206 Articles

Find n-th element in a series with only 2 digits (and 7) allowed in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 08:28:25

163 Views

In this problem, we are given an integer N, denoting a series of numbers consisting of 4 and 7 only.The series is 4, 7, 44, 47, 74, 77, …The task is to find the n-th element in a series with only 2 digits (and 7) allowed.Let’s take an example to ... Read More

Find n positive integers that satisfy the given equations in C++

sudhir sharma

sudhir sharma

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

210 Views

In this problem, we are given three values A, B and N. Our task is to Find n positive integers that satisfy the given equations.Problem Description − We need to find the N positive values that satisfy both the equations, x12 + x22 + … xn2 ≥ A x1 + ... Read More

Find N % (Remainder with 4) for a large value of N in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 08:21:40

60 Views

In this problem, we are given a string num representing a large integer. Our task is to Find N % (Remainder with 4) for a large value of N.Problem Description − we will be finding the remainder of the number with 4.Let’s take an example to understand the problem, Inputnum ... Read More

Find Multiples of 2 or 3 or 5 less than or equal to N in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 08:18:02

243 Views

In this problem, we are given a number N. Our task is to Find Multiples of 2 or 3 or 5 less than or equal to N.Problem Description − We will be counting all elements from 1 to N that are divisible by 2 or 3 or 5.Let’s take an ... Read More

Find modular node in a linked list in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 07:36:43

163 Views

In this problem, we are given a singly linked list LL and a number k. Our task is to Find modular node in a linked list.Problem Description − we need to find the last node of the linked list for which the index is divisible by k i.e. i % ... Read More

Find missing elements of a range in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 07:33:23

349 Views

In this problem, we are given an array arr[] of size n and the start and end element denoting the range. Our task is to Find missing elements of a range.Problem Description − we will be finding the elements of the range that are not present in the range.Let’s take ... Read More

Find mirror of a given node in Binary tree in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 07:28:27

140 Views

In this problem, we are given a binary tree. Our task is to Find mirror of a given node in the Binary tree. We will be given a node, and find the mirror image of that node in the opposite subtree.Let’s take an example to understand the problem, InputOutputmirror of ... Read More

Find mirror image of a point in 2-D plane in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 07:24:48

201 Views

In this problem, we are given a point P in a 2-D plane and the points a, b, c of the equation ax + by + c = 0. Our task is to find a mirror image of a point in 2-D plane.Let’s take an example to understand the problem, ... Read More

Find minimum speed to finish all Jobs in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 07:09:18

120 Views

In this problem, we are given an array arr[] consisting of n elements and an integer h. Each element of the array arr[] contains the number of pending jobs for the person and H is the time left to complete the jobs (in Hours). Our task is to Find minimum ... Read More

Find minimum possible size of array with given rules for removing elements in C++

sudhir sharma

sudhir sharma

Updated on 12-Mar-2021 07:05:04

467 Views

In this problem, we are given an array of n numbers and an integer value k. Our task is to Find minimum possible size of the array with given rules for removing elements.Problem Description − we need to minimise the number of elements in the array. By using the follow ... Read More

Advertisements