## Largest subarray sum of all connected components in undirected graph

Given an undirected graph with V vertices and E edges, the task is to find the maximum contiguous subarray sum among all the connected components… Read More »

- Must do Math for Competitive Programming
- Which C++ libraries are useful for competitive programming?
- Breadth First Search without using Queue
- Which Java libraries are useful for competitive programming?
- Minimize the maximum difference between adjacent elements in an array
- 7 Best Coding Challenge Websites in 2020
- Which Python Modules are useful for competitive programming?
- Speed up Code executions with help of Pragma in C/C++
- Basic Algorithm Techniques Not Taught in Academics
- Setting up a C++ Competitive Programming Environment
- Writing code faster during Competitive Programming in C++
- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Count of subarrays of an Array having all unique digits
- Logarithm tricks for Competitive Programming
- Move all zeroes to end of array using Two-Pointers
- Default values in a Map in C++ STL
- Sum of GCD of all possible sequences
- How To Approach A Coding Problem ?
- Minimize the maximum difference of adjacent elements after at most K insertions
- Maximum LCM among all pairs (i, j) from the given Array
- Count of subarrays which start and end with the same element
- Kth most frequent Character in a given String
- Submatrix of given size with maximum 1's
- Longest Mountain Subarray
- Length of the smallest substring which contains all vowels
- Count of substrings of length K with exactly K distinct characters
- Count the number of ways to construct the target string
- Find distance between two nodes in the given Binary tree for Q queries
- Queries for elements having values within the range A to B in the given index range using Segment Tree
- Find maximum subset sum formed by partitioning any subset of array into 2 partitions with equal sum

Given an undirected graph with V vertices and E edges, the task is to find the maximum contiguous subarray sum among all the connected components… Read More »

Given an array arr[] of length N, tark is to find the length of longest subarray such that difference of its maximum element and minumum… Read More »

Given two integers N and K, the task is to print the number formed by adding product of its max and min digit, K times.… Read More »

Given an array arr[] of size N and an array Q[][] consisting of M queries that needs to be processed on the given array. It… Read More »

Given an array A containing N integers, the task is to count the number of elements which form a cycle in the array, based on… Read More »

Given two array a[] and b[] of size N, the task is to print the count of operations required to make all the elements of… Read More »

Given two integers A and N, our task is to find the Nth natural number which is not divisible by A. Examples: Input: A =… Read More »

Logarithm: is the inverse function of the exponentiation which means the logarithm value of a given number x is the exponent to another number. Below… Read More »

Given a tree with the weights of all the nodes, the task is to find the maximum weighing node whose weight has even digit sum.… Read More »

Given a weighted tree, the task is to count the number of nodes whose sum of digits of weights is a Prime Number. Examples: Input:… Read More »

Given a graph with N nodes and E edges, the task is to count the number of clique having their size as a prime number… Read More »

Given an array arr[] of size N, the task is to find the longest increasing sub-sequence such that index of any element is divisible by… Read More »

Given an array A of size N where the array elements contain values from 1 to N with duplicates, the task is to find total… Read More »

Given Q queries where each query consists of two numbers L and R which denotes a range [L, R]. The task is to find the… Read More »

Given an array arr[] of N integers, the task is to perform the following two queries: query(start, end): Print the number of Armstrong numbers in… Read More »