Ayush Gupta has Published 530 Articles

Convert to Strictly increasing integer array with minimum changes in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:43:14

190 Views

In this tutorial, we will be discussing a program to convert to strictly increasing integer array with minimum changes.For this we will be provided with an array. Our task is to change the elements of the array to be in strictly increasing order by minimum number of changes in the ... Read More

Converting Roman Numerals to Decimal lying between 1 to 3999 in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:40:25

358 Views

In this tutorial, we will be discussing a program to converting roman numerals to decimal lying between 1 to 3999.For this we will be provided with a random roman numeral. Our task is to convert the given roman numeral into its decimal equivalent.Example Live Demo#include using namespace std; //calculating the decimal ... Read More

Convex Hull Jarvis’s Algorithm or Wrapping in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:37:54

650 Views

In this tutorial, we will be discussing a program to find the convex hull of a given set of points using Jarvis’s Algorithm.Convex hull is the smallest polygon convex figure containing all the given points either on the boundary on inside the figure.In Jarvis’s algorithm, we select the leftmost point ... Read More

Converting seconds into days, hours, minutes and seconds in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:35:56

1K+ Views

In this tutorial, we will be discussing a program to convert seconds into days, hours, minutes and seconds.For this we will be provided with a random number of seconds. Our task is to convert it into proper number of days, hours, minutes and seconds respectively.Example Live Demo#include using namespace std; ... Read More

Coordinates of rectangle with given points lie inside in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:30:11

234 Views

In this tutorial, we will be discussing a program to find the coordinates of rectanglewith given points lying inside.For this we will be provided with some coordinate points. Our task is to find the smallest rectangle such that all the points lie inside it and it should have its sides ... Read More

Convex Hull using Divide and Conquer Algorithm in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:28:58

1K+ Views

In this tutorial, we will be discussing a program to find the convex hull of a given set of points.Convex hull is the smallest polygon convex figure containing all the given points either on the boundary on inside the figure.In this program, we will use brute force to divide the ... Read More

Convex Hull Monotone chain algorithm in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:23:54

216 Views

In this tutorial, we will be discussing a program to find the convex hull of a given set of points.Convex hull is the smallest polygon convex figure containing all the given points either on the boundary on inside the figure.Example Live Demo#include #define llu long long int using namespace std; ... Read More

Convex Hull Graham Scan in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:21:35

955 Views

In this tutorial, we will be discussing a program to find the convex hull of a given set of points.Convex hull is the smallest polygon convex figure containing all the given points either on the boundary on inside the figure.In Graham Scan, firstly the pointes are sorted to get to ... Read More

Copy set bits in a range in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:18:33

439 Views

In this tutorial, we will be discussing a program to copy set bits of one number to another in the given range.For this we will be provided with two integers. Our task is to see the bits in the first number and set those bits in the second number as ... Read More

Convert time from 24 hour clock to 12 hour clock format in C++

Ayush Gupta

Ayush Gupta

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

902 Views

In this tutorial, we will be discussing a program to convert time from 24 hour clock to 12 hour clock format.For this we will be provided with certain time in 24 hour format. Our task is to convert it into 12 hour format with the extension of “AM” or “PM”.Example Live ... Read More

Advertisements