All Medium Articles
Although C does not provide direct support to error handling (or exception handling), there are ways through which error handling can be done in C.… Read More
Given a undirected graph of n nodes and m edges. The task is to find minimum edges required to make Euler Circuit in the given… Read More
Given N points in 2-dimensional space, we need to find three points such that triangle made by choosing these points should not contain any other… Read More
Given a non-negative integer N, the task is to find count of non-negative integers less than or equal to N whose bitwise OR and sum with… Read More
1st Round :   Check if tree is a binary tree or binary search tree or not. Write a program to output power(m,n). Given an infinitely… Read More
A convex polygon and a convex clipping area are given. The task is to clip polygon edges using the Sutherland–Hodgman Algorithm. Input is in the… Read More
Machine learning is a type of artificial intelligence (AI) that provides computers with the ability to learn without being explicitly programmed. Machine learning focuses on… Read More
Given three numbers n, r and p, compute the value of nCr mod p. Here p is a prime number greater than n. Here nCr… Read More
What will be the output of this program? #include<iostream> using namespace std; int x; // Global x    int main() {     int x = 10;… Read More
While coding in various competitive sites, many people must have encountered NZEC errors. NZEC (non zero exit code) as the name suggests occurs when your… Read More
POJO stands for Plain Old Java Object. It is an ordinary Java object, not bound by any special restriction other than those forced by the… Read More
The following program detects the edges of frames in a livestream video content. The code will only compile in linux environment. Make sure that openCV is… Read More
K-Means Clustering is an Unsupervised Machine Learning algorithm, which groups the unlabeled dataset into different clusters. The article aims to explore the fundamentals and working… Read More
VMware visited our campus to hire new graduates for their Propel Program. The CGPA cutoff was 7. Round 1 Online MCQ round. This had 3… Read More
Prerequisite: Asymptotic Analysis, Worst, Average and Best Cases, Asymptotic Notations, Analysis of loops. Problem 1: Find the complexity of the below recurrence:        … Read More
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some arbitrary node as… Read More
1) What is the output of the following program?  Java public class Test implements Runnable {     public void run() { System.out.printf("%d", 3); }     public static… Read More
Given an undirected complete graph with N nodes or vertices. Edges of the graph are colored, find the largest subset of vertices with edges of… Read More
In most programming competitions, we are required to answer the result in 10^9+7 modulo. The reason behind this is, if problem constraints are large integers,… Read More
There are multiple ways of writing and reading a text file in Java. this is required while dealing with many applications. There are several ways… Read More