Ayush Gupta has Published 527 Articles

Convert from any base to decimal and vice versa in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:26:39

1K+ Views

In this tutorial, we will be discussing a program to convert from any base to a decimal and vice versa.For this we will be provided with an integer and its base. Our task is to convert the number to its decimal equivalent. Further we will also be performing the reverse ... Read More

Convert decimal fraction to binary number in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:21:31

624 Views

In this tutorial, we will be discussing a program to convert decimal fraction to a binary number.For this we will be provided with a decimal fraction and integer ‘k’. Our task is to convert the given decimal fraction into its binary equivalent upto the given ‘k’ digits of decimal precision.Example Live ... Read More

Convert BST to Min Heap in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:12:06

390 Views

In this tutorial, we will be discussing a program to convert a binary search tree to a min heap.For this we will be provided with a binary search tree. Our task is to convert the given binary search tree into a min heap such that following the condition of the ... Read More

Convert BST to Max Heap in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:08:43

599 Views

In this tutorial, we will be discussing a program to convert a binary search tree to a max heap.For this we will be provided with a binary search tree. Our task is to convert the given binary search tree into a max heap such that following the condition of the ... Read More

Convert array into Zig-Zag fashion in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:05:46

384 Views

In this tutorial, we will be discussing a program to convert an array into zig-zag fashion.For this we will be provided with an array containing distinct elements. Our task is to rearrange the elements of the given array in a zig zag fashion with greater and smaller elements alternatively as ... Read More

Convert an array to reduced form (Using vector of pairs) in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 07:02:06

216 Views

In this tutorial, we will be discussing a program to convert an array to its reduced form using vector of pairs.For this we will be provided with an array. Our task is to convert the given array in its reduced form such that it only contains elements ranging from 0 ... Read More

Convert an array to reduced form (Hashing) in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 06:59:07

156 Views

In this tutorial, we will be discussing a program to convert an array to its reduced form using hashing.For this we will be provided with an array. Our task is to convert the given array in its reduced form such that it only contains elements ranging from 0 to n-1.Example Live ... Read More

Convert an Array to a Circular Doubly Linked List in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 06:55:53

408 Views

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

Convert an arbitrary Binary Tree to a tree that holds Children Sum Property in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 06:50:38

397 Views

In this tutorial, we will be discussing a program to convert an arbitrary binary tree to a tree that holds children sum property.For this we will be provided with a binary tree. Our task is to convert it into the binary tree that follows the children sum property. But the ... Read More

Convert all substrings of length ‘k’ from base ‘b’ to decimal in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Jan-2020 06:45:26

113 Views

In this tutorial, we will be discussing a program to convert all substrings of length ‘k’ from base ‘b’ to decimal.For this we will be provided with a string of some certain length. Our task is to take the substrings from the given string of size ‘k’ and get it ... Read More

Advertisements