Ayush Gupta has Published 541 Articles

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

Ayush Gupta

Ayush Gupta

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

628 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

221 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

174 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

833 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

174 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

362 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

487 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

Convert given time into words in C++

Ayush Gupta

Ayush Gupta

Updated on 22-Jan-2020 06:56:25

220 Views

In this tutorial, we will be discussing a program to convert given time into words. For this we will be provided with a specific time in the digital format.Our task is to convert that particular time into wordsExample#include using namespace std; //printing time in words void convert_time(int h, int ... Read More

Convert given string so that it holds only distinct characters in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:36:25

175 Views

In this tutorial, we will be discussing a program to convert given string so that it holds only distinct characters.For this we will be provided with a string. Our task is to traverse through the string and replace all the recurring characters with any random characters that are not already ... Read More

Advertisements