Prateek Jangid has Published 190 Articles

Remove Duplicates from a Sorted Linked List Using Recursion

Prateek Jangid

Prateek Jangid

Updated on 10-Aug-2022 07:53:32

400 Views

A linked list is a sequence of elements that are connected together. Each list have a head and series of nodes and each node has data of the current node and link to next node. The basic operations of a linked list are insertion, deletion, search and delete. Removing duplicates ... Read More

C++ program to remove characters from a numeric string to make it divisible by 8

Prateek Jangid

Prateek Jangid

Updated on 10-Aug-2022 07:50:42

105 Views

Given a number in the form of a string, we need to find where to make it divisible by eight after deleting zero or more elements. In other words, we need to find whether there is a subsequence of the string, which is divisible by 8. Return the modified string ... Read More

Removing Brackets from an Algebraic String Containing + and – Operators using C++

Prateek Jangid

Prateek Jangid

Updated on 10-Aug-2022 07:47:23

364 Views

Given an algebraic string like p-(q-r)-s, we need to remove the brackets and convert this string to a string with the same mathematical result. So the string p-(q-r)-s is converted to p-q+r-s, giving us the same mathematical result. To achieve this, we can use a stack and keep track of ... Read More

C++ program to remove Nodes that Don't Lie in Any Path With Sum>=k

Prateek Jangid

Prateek Jangid

Updated on 10-Aug-2022 07:27:18

98 Views

In this problem, we have a binary tree with a path from the root node to the leaf node that is completely defined. The sum of all nodes from the root node to the leaf node must be greater than or equal to, a constant value, k. So we need ... Read More

C++ Program to remove Characters from a Numeric String Such That String Becomes Divisible by 8

Prateek Jangid

Prateek Jangid

Updated on 18-May-2022 11:54:33

154 Views

Given a number in the form of a string, we need to find where to make it divisible by eight after deleting zero or more elements. In other words, we need to find whether there is a subsequence of the string, which is divisible by 8. Return the modified string ... Read More

Remove All Nodes Which Don't Lie in Any Path With Sum>=k using C++

Prateek Jangid

Prateek Jangid

Updated on 18-May-2022 11:48:55

129 Views

In this problem, we have a binary tree with a path from the root node to the leaf node that is completely defined. The sum of all nodes from a root node to a leaf node must be greater than or equal to k. So we need to remove all ... Read More

Partition Problem in C++

Prateek Jangid

Prateek Jangid

Updated on 07-Mar-2022 09:29:48

482 Views

In this problem, we must build C++ code to determine whether or not an array may be divided into two equal subarrays. Also, we have to check the condition if the sum of all the elements in both subarrays is exactly the same or not. The partitioning problem is a ... Read More

Parallel Array in C++

Prateek Jangid

Prateek Jangid

Updated on 07-Mar-2022 08:14:09

2K+ Views

The parallel array is also called the structure array.Definition − A parallel array can be defined as multiple arrays in which the ith elements are closely related, and together, they constitute an entity. An array is a fundamental feature in the C++ language. Making parallel arrays helps us in comparing ... Read More

Palindrome Substring Queries in C++

Prateek Jangid

Prateek Jangid

Updated on 07-Mar-2022 07:59:03

366 Views

In this tutorial, we need to solve palindrome substring queries of the given string. Solving palindrome substring queries is far more complex than solving regular queries in C++. It requires a far more complex code and logic.In this tutorial, we are provided string str and Q number of substring[L...R] queries, ... Read More

Making a Palindrome pair in an array of words (or strings) in C++

Prateek Jangid

Prateek Jangid

Updated on 07-Mar-2022 07:45:56

355 Views

"Madam" or "racecar" are two words that read the same backward as forwards, called palindromes.If we are given a collection or list of strings, we have to write a C++ code to find out if that can join any two strings in the list together to form a palindrome or ... Read More

Previous 1 ... 4 5 6 7 8 ... 19 Next
Advertisements