# Category Archives: Articles

## Nth Term of a Fibonacci Series of Primes formed by concatenating pairs of Primes in a given range

Given two integers X and Y, the task is to perform the following operations: Find all prime numbers in the range [X, Y]. Generate all… Read More »

## Minimum Cost Maximum Flow from a Graph using Bellman Ford Algorithm

Given a source node S, a sink node T, two matrices Cap[ ][ ] and Cost[ ][ ] representing a graph, where Cap[i][j] is the… Read More »

## Find a pair in Array with second largest product

Given an array arr[] of N integers, where N > 2, the task is to find the second largest product pair from the given array.… Read More »

## TCS Interview Questions

TCS is a great place to start your career as a fresher. It offers a great workplace as well as a friendly environment with a… Read More »

PyQt5 is one of the emerging GUI libraries in terms of developing Python GUI Desktop apps. It has rich and robust functionality which ensures production… Read More »

## Add and Remove Edge in Adjacency Matrix representation of a Graph

Prerequisites: Graph and its representations Given an adjacency matrix g[][] of a graph consisting of N vertices, the task is to modify the matrix after… Read More »

## Finding reminder of a large number

Number System is an important concept for solving GATE Aptitude questions and aptitude for entrance exams for different companies. The below is an important question… Read More »

## Check if two nodes are on same path in a tree | Set 2

Given two nodes of a binary tree v1 and v2, the task is to check if two nodes are on the same path in a… Read More »

## Minimum count of numbers required with unit digit X that sums up to N

Given two integers N and X, the task is to find the minimum count of integers with sum N and having unit digit X. If… Read More »

## Print the longest path from root to leaf in a Binary tree

Given a binary tree, the task is to print the longest path from the root node to the leaf node. If there are multiple answers… Read More »

## Largest number M less than N such that XOR of M and N is even

Given a positive integer N, the task is to find the largest integer M such that 0 <= M < N and XOR(M, N) is… Read More »

## Count of 0s to be flipped to make any two adjacent 1s at least K 0s apart

Given a binary string s and a number K, the task is to find the maximum number of 0s that can be replaced by 1s… Read More »

## Shortest path in a complement graph

Given an undirected non-weighted graph G. For a given node start return the shortest path that is the number of edges from start to all… Read More »

## Maximum size subset with given sum using Backtracking

Given an array arr[] consisting of N integers and an integer K, the task is to find the length of longest subsequence with sum equal… Read More »

## Maximize Profit by trading stocks based on given rate per day

Given an array arr[] of N positive integers which denotes the cost of selling and buying a stock on each of the N days. The… Read More »