Ayush Gupta has Published 530 Articles

Convert the undirected graph into directed graph such that there is no path of length greater than 1 in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:45:37

188 Views

In this tutorial, we will be discussing a program to convert the undirected graph into a directed graph such that there is no path of length greater than 1.For this we will be provided with an undirected graph. Our task is to convert that graph into a direct one given ... Read More

Convert the string into palindrome string by changing only one character in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:42:15

376 Views

In this tutorial, we will be discussing a program to convert the string into palindrome string by changing only one character.For this we will be provided with a string. Our task is to convert the given string into a palindrome by changing only one character.Example Live Demo#include using namespace std; //checking ... Read More

Convert the ASCII value sentence to its equivalent string in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:35:38

794 Views

In this tutorial, we will be discussing a program to convert the ASCII value sentence to its equivalent string.For this we will be provided with a string containing the ASCII codes. Our task is to convert the given string into the equivalent characters and print it back.Example Live Demo#include using ... Read More

Convert the array such that the GCD of the array becomes 1 in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:28:31

262 Views

In this tutorial, we will be discussing a program to convert the array such that the GCD of the array becomes one.For this we will be provided with an array and a positive integer k. Our task is to convert the array elements such that the GCD of elements is ... Read More

Convert Ternary Expression to a Binary Tree in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:23:09

254 Views

In this tutorial, we will be discussing a program to convert ternary expression to a binary tree.For this we will be provided with a ternary expression. Our task is to convert the given expression in the form of a binary tree depending upon the various paths(choices) possible.Example Live Demo#include using namespace ... Read More

Convert String into Binary Sequence in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:18:22

1K+ Views

In this tutorial, we will be discussing a program to convert string into Binary sequence.For this we will be provided with a string of characters. Our task is to convert each of the character into its binary equivalent and print it out spaced between for different characters.Example Live Demo#include using ... Read More

Convert singly linked list into XOR linked list in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:13:44

277 Views

In this tutorial, we will be discussing a program to convert a singly linked list into XOR linked list.For this we will be provided with a singly linked list. Our task is to take the elements of that list and get it converted into a XOR linked list.Example Live Demo#include ... Read More

Convert singly linked list into circular linked list in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:07:07

554 Views

In this tutorial, we will be discussing a program to convert a singly linked list into circular linked list.For this we will be provided with a singly linked list. Our task is to take the elements of that list and get it converted into a circular linked list.Example Live Demo#include ... Read More

Convert min Heap to max Heap in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:04:04

726 Views

In this tutorial, we will be discussing a program to convert min heap to max heap.For this we will be provided with the array representation of the min heap. Our task is to convert that given min heap to max heap in O(n) time complexity.Example Live Demo#include using namespace std; //converting ... Read More

Convert Hexadecimal value String to ASCII value String in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 07:00:38

2K+ Views

In this tutorial, we will be discussing a program to convert hexadecimal value string to ASCII value string.For this we will be provided with a string with some hexadecimal values. Our task is to get that hexadecimal value and convert it into equivalent ASCII values.Example Live Demo#include using namespace std; ... Read More

Advertisements