Gblog 30 Days to Form a New Habit of Coding – Are You In?
Many times we have seen people, especially students, complaining about how they can’t maintain consistency while doing Coding and solving programming problems. All the excitement… Read More
January 23, 2021
The Stable Marriage Problem states that given N men and N women, where each person has ranked all members of the opposite sex in order… Read More
In a flow network, an s-t cut is a cut that requires the source ‘s’ and the sink ‘t’ to be in different subsets, and… Read More
A matching in a Bipartite Graph is a set of the edges chosen in such a way that no two edges share an endpoint. A… Read More
filter_none edit close play_arrow link brightness_4 code #include<iostream> using namespace std;    class X  { public:     int x; };    int main() {     X a… Read More
Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of… Read More
Given a polygon and a point ‘p’, find if ‘p’ lies inside the polygon or not. The points lying on the border are considered inside. … Read More
Given two line segments (p1, q1) and (p2, q2), find if the given line segments intersect with each other. Before we discuss solution, let us… Read More